summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-11 04:12:03 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-11 04:39:28 +0200
commit96cf0a4e97a8725b59d8746192c6e4888a1314b8 (patch)
tree218aea11db929f930932d0e4cb030ac0b530d213 /sc/source
parent2134399f0e462fb6721f20c58fcd8470110ff875 (diff)
the formula ref edits need 3D references
Change-Id: I360d8244f6b8feee862e9e750859271b741dcf93
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/condformat/condformatdlg.cxx9
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 );
}
}