Kaydet (Commit) 96cf0a4e authored tarafından Markus Mohrhard's avatar Markus Mohrhard

the formula ref edits need 3D references

Change-Id: I360d8244f6b8feee862e9e750859271b741dcf93
üst 2134399f
......@@ -395,6 +395,7 @@ sal_Bool ScCondFormatDlg::IsRefInputMode() const
| SCA_COL_ABSOLUTE | SCA_ROW_ABSOLUTE | SCA_TAB_ABSOLUTE
#define ABS_DREF ABS_SREF \
| SCA_COL2_ABSOLUTE | SCA_ROW2_ABSOLUTE | SCA_TAB2_ABSOLUTE
#define ABS_DREF3D ABS_DREF | SCA_TAB_3D
void ScCondFormatDlg::SetReference(const ScRange& rRef, ScDocument*)
{
......@@ -408,7 +409,13 @@ void ScCondFormatDlg::SetReference(const ScRange& rRef, ScDocument*)
RefInputStart(pEdit);
rtl::OUString aRefStr;
rRef.Format( aRefStr, ABS_DREF, mpDoc, ScAddress::Details(mpDoc->GetAddressConvention(), 0, 0) );
sal_uInt16 n = 0;
if(mpLastEdit && mpLastEdit != &maEdRange)
n = ABS_DREF3D;
else
n = ABS_DREF;
rRef.Format( aRefStr, n, mpDoc, ScAddress::Details(mpDoc->GetAddressConvention(), 0, 0) );
pEdit->SetRefString( aRefStr );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment