Kaydet (Commit) f8b94e51 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix sheet into which we insert extLst cond formats

Change-Id: Idbf9772bbb2c034a6c016492ab31b87e248f7b47
üst e9a206c8
......@@ -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)
{
......
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment