diff options
-rw-r--r-- | sw/source/filter/xml/xmlimp.cxx | 1 | ||||
-rw-r--r-- | xmloff/inc/xmloff/xmlimp.hxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index 8e79e986430e..240439e2fe96 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -936,6 +936,7 @@ void SwXMLImport::endDocument( void ) // delegate to parent: takes care of error handling SvXMLImport::endDocument(); + ClearTextImport(); } diff --git a/xmloff/inc/xmloff/xmlimp.hxx b/xmloff/inc/xmloff/xmlimp.hxx index 125728fbb726..4fac73753165 100644 --- a/xmloff/inc/xmloff/xmlimp.hxx +++ b/xmloff/inc/xmloff/xmlimp.hxx @@ -155,6 +155,7 @@ protected: const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList ); virtual XMLTextImportHelper* CreateTextImport(); + inline void ClearTextImport() { mxTextImport = 0; } virtual XMLShapeImportHelper* CreateShapeImport(); inline sal_Bool HasShapeImport() const { return mxShapeImport.is(); } inline void ClearShapeImport() { mxShapeImport = 0; } |