summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/exp/xmltext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerperfect/source/writer/exp/xmltext.cxx')
-rw-r--r--writerperfect/source/writer/exp/xmltext.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/writerperfect/source/writer/exp/xmltext.cxx b/writerperfect/source/writer/exp/xmltext.cxx
index 3902e15ae839..a6624b1f2115 100644
--- a/writerperfect/source/writer/exp/xmltext.cxx
+++ b/writerperfect/source/writer/exp/xmltext.cxx
@@ -13,6 +13,7 @@
#include "xmltbli.hxx"
#include "XMLSectionContext.hxx"
#include "XMLTextListContext.hxx"
+#include "xmlimp.hxx"
using namespace com::sun::star;
@@ -26,6 +27,12 @@ XMLBodyContentContext::XMLBodyContentContext(XMLImport &rImport)
{
}
+void XMLBodyContentContext::endElement(const OUString &/*rName*/)
+{
+ if (mrImport.GetIsInPageSpan())
+ mrImport.GetGenerator().closePageSpan();
+}
+
rtl::Reference<XMLImportContext> XMLBodyContentContext::CreateChildContext(const OUString &rName, const css::uno::Reference<css::xml::sax::XAttributeList> &/*xAttribs*/)
{
return CreateTextChildContext(mrImport, rName);