diff options
-rw-r--r-- | sc/source/filter/oox/extlstcontext.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/oox/extlstcontext.cxx b/sc/source/filter/oox/extlstcontext.cxx index 67809e21f791..7371f99574ba 100644 --- a/sc/source/filter/oox/extlstcontext.cxx +++ b/sc/source/filter/oox/extlstcontext.cxx @@ -83,7 +83,7 @@ ContextHandlerRef ExtConditionalFormattingContext::onCreateContext(sal_Int32 nEl assert(rFormat.GetType() == condformat::ICONSET); ScIconSetFormat& rIconSet = static_cast<ScIconSetFormat&>(rFormat); ScDocument* pDoc = &getScDocument(); - SCTAB nTab = getCurrentSheetIndex(); + SCTAB nTab = getSheetIndex(); ScAddress aPos(0, 0, nTab); mpCurrentRule->SetData(&rIconSet, pDoc, aPos); delete mpCurrentRule; @@ -156,7 +156,7 @@ void ExtConditionalFormattingContext::onEndElement() if (!bSuccess || aRange.empty()) break; - SCTAB nTab = getCurrentSheetIndex(); + SCTAB nTab = getSheetIndex(); for (size_t i = 0; i < aRange.size(); ++i) { aRange[i]->aStart.SetTab(nTab); |