diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-04-12 18:35:58 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-04-12 18:37:54 +0200 |
commit | bff788ff811400d816cec6582e9abdf73be90fb7 (patch) | |
tree | 61ef196dc8aba71108c7d8227e6708423f0bf3f4 /sc | |
parent | ce66533a066dcc9c899da8b15c788642ac4ae979 (diff) |
xls does not allow 3D refs in cond format formulas, tdf#62770
Change-Id: I4f2bf913d09452ccfed9976ccd56a82daf1c3ec8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xeformula.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xeformula.cxx b/sc/source/filter/excel/xeformula.cxx index 9742cb6ad7ed..af0e6c385c99 100644 --- a/sc/source/filter/excel/xeformula.cxx +++ b/sc/source/filter/excel/xeformula.cxx @@ -1808,6 +1808,10 @@ bool XclExpFmlaCompImpl::IsRef2D( const ScSingleRefData& rRefData, bool bCheck3D the own sheet. If 3D references are allowed, the passed reference does not count as 2D reference. */ + // conditional formatting does not allow 3D refs in xls + if (this->mxData->mrCfg.meType == EXC_FMLATYPE_CONDFMT) + return true; + if (bCheck3DFlag && rRefData.IsFlag3D()) return false; |