summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlimprt.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-12-18 00:48:36 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-12-18 09:08:02 +0100
commitf9d8fe959d88011d63fc047a8cc00ded1dd2fda1 (patch)
tree73e3b8f55e3fb7c0b78d2399bd31846dd13237ce /sc/source/filter/xml/xmlimprt.cxx
parent44ac1579f31c4ad7d026f7e2736ad2124e40295e (diff)
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/46672 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/filter/xml/xmlimprt.cxx')
-rw-r--r--sc/source/filter/xml/xmlimprt.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index 91ebc28bd1cb..0a7f0a44efa8 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -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();
}