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

clear the data provider cache after import, tdf#111960

This might also fix some problems with normal ODS files and not just
with FODS files when we recompile formulas after the whole import.

Change-Id: Iec05d2052ca5ce3bdf03abf02d502e4537fd3082
Reviewed-on: https://gerrit.libreoffice.org/46672Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 44ac1579
......@@ -90,6 +90,7 @@ enum class SfxHintId {
ScKillEditViewNoPaint,
ScHiddenRowsChanged,
ScSelectionChanged,
ScClearCache,
// SC accessibility hints
ScAccTableChanged,
......
......@@ -1870,6 +1870,11 @@ void SAL_CALL ScXMLImport::endDocument()
}
SvXMLImport::endDocument();
if (pDoc)
{
pDoc->BroadcastUno(SfxHint(SfxHintId::ScClearCache));
}
if(pDoc && bSelfImportingXMLSet)
ScModelObj::getImplementation(GetModel())->AfterXMLLoading();
}
......
......@@ -2850,6 +2850,11 @@ void ScChart2DataSequence::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint
if ( !m_aValueListeners.empty() )
m_bGotDataChangedHint = true;
}
else if (nId == SfxHintId::ScClearCache)
{
// necessary after import
m_aDataArray.clear();
}
}
}
......
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