diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-26 10:21:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-26 10:41:04 +0100 |
commit | 99ca3a3c7214ed5d3861c0ad1f644a514857766d (patch) | |
tree | b3c0cac2d4cca25bc3ad9e4fab1ff575edc11808 | |
parent | fa85dbb6519b3d9ae096cad7608779476cb3a742 (diff) |
close sc and sw docshells too
Change-Id: I2cf06762d50736debd63f385dcae3022412ac0c0
-rw-r--r-- | sc/source/filter/xml/xmlimprt.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/xml/xmlimp.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index a88c94fe73b9..4fe0c8e4a145 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -2097,6 +2097,8 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportFODS(SvStream &rStream) bool ret = xFilter->filter(aArgs); xDocSh->SetLoading(SfxLoadedFlags::ALL); + xDocSh->DoClose(); + return ret; } diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index c82a9303b3e3..6e1d0e70e1f6 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -1592,6 +1592,8 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportFODT(SvStream &rStream) bool ret = xFilter->filter(aArgs); xDocSh->SetLoading(SfxLoadedFlags::ALL); + xDocSh->DoClose(); + return ret; } |