diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-11 04:12:03 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-11 04:39:28 +0200 |
commit | 96cf0a4e97a8725b59d8746192c6e4888a1314b8 (patch) | |
tree | 218aea11db929f930932d0e4cb030ac0b530d213 /sc | |
parent | 2134399f0e462fb6721f20c58fcd8470110ff875 (diff) |
the formula ref edits need 3D references
Change-Id: I360d8244f6b8feee862e9e750859271b741dcf93
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/condformat/condformatdlg.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx index 6bced64e01af..bf4f8b20b762 100644 --- a/sc/source/ui/condformat/condformatdlg.cxx +++ b/sc/source/ui/condformat/condformatdlg.cxx @@ -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 ); } } |