summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/condformatbuffer.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-05-16 06:30:51 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-05-16 07:26:40 +0200
commitf8b94e51c672eaa55bceaee2ceca72d8399b434b (patch)
tree916ab4980b0c1768864c6f31ea252f3931bded85 /sc/source/filter/oox/condformatbuffer.cxx
parente9a206c8d7533ba8ccf8ad5f4e3e76557850459e (diff)
fix sheet into which we insert extLst cond formats
Change-Id: Idbf9772bbb2c034a6c016492ab31b87e248f7b47
Diffstat (limited to 'sc/source/filter/oox/condformatbuffer.cxx')
-rw-r--r--sc/source/filter/oox/condformatbuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx
index b54930e792bf..927513c92029 100644
--- a/sc/source/filter/oox/condformatbuffer.cxx
+++ b/sc/source/filter/oox/condformatbuffer.cxx
@@ -1144,10 +1144,10 @@ void CondFormatBuffer::finalizeImport()
for (auto itr = maExtCondFormats.begin(); itr != maExtCondFormats.end(); ++itr)
{
- SCTAB nTab = this->getCurrentSheetIndex();
ScDocument* pDoc = &getScDocument();
const ScRangeList& rRange = itr->getRange();
+ SCTAB nTab = rRange.front()->aStart.Tab();
ScConditionalFormat* pFormat = findFormatByRange(rRange, pDoc, nTab);
if (!pFormat)
{