summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/extlstcontext.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/extlstcontext.cxx
parente9a206c8d7533ba8ccf8ad5f4e3e76557850459e (diff)
fix sheet into which we insert extLst cond formats
Change-Id: Idbf9772bbb2c034a6c016492ab31b87e248f7b47
Diffstat (limited to 'sc/source/filter/oox/extlstcontext.cxx')
-rw-r--r--sc/source/filter/oox/extlstcontext.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/filter/oox/extlstcontext.cxx b/sc/source/filter/oox/extlstcontext.cxx
index 92d7f03e67c7..67809e21f791 100644
--- a/sc/source/filter/oox/extlstcontext.cxx
+++ b/sc/source/filter/oox/extlstcontext.cxx
@@ -156,6 +156,13 @@ void ExtConditionalFormattingContext::onEndElement()
if (!bSuccess || aRange.empty())
break;
+ SCTAB nTab = getCurrentSheetIndex();
+ for (size_t i = 0; i < aRange.size(); ++i)
+ {
+ aRange[i]->aStart.SetTab(nTab);
+ aRange[i]->aEnd.SetTab(nTab);
+ }
+
boost::ptr_vector<ExtCfCondFormat>& rExtFormats = getCondFormats().importExtCondFormat();
rExtFormats.push_back(new ExtCfCondFormat(aRange, maEntries));
}