summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtparae.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/txtparae.cxx')
-rw-r--r--xmloff/source/text/txtparae.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 78390194ba69..ec0457feb755 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -2531,11 +2531,13 @@ void XMLTextParagraphExport::exportTextRangeEnumeration(
}
else if (sType == gsSoftPageBreak)
{
- exportSoftPageBreak();
+ if (!bAutoStyles)
+ exportSoftPageBreak();
}
else if (sType == "LineBreak")
{
- exportTextLineBreak(xPropSet);
+ if (!bAutoStyles)
+ exportTextLineBreak(xPropSet);
}
else {
OSL_FAIL("unknown text portion type");