summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8
diff options
context:
space:
mode:
authorRohit Deshmukh <rohit.deshmukh@synerzip.com>2014-04-04 17:47:21 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-04-11 07:52:57 +0000
commit05c5da4c376d676ff89cd40dd0dea9eeb4bc1e75 (patch)
tree21638a7e78ef13f8515cb08343ee899bfb2344d2 /sw/source/filter/ww8
parenta3be37674609adf68e533f31f120bbdc1abe5f7a (diff)
fdo#76597: Fix preservation issue of Spacing between paragraph
Change-Id: I458bed111893a8d2fef79b11e28263a5bd2ed9cf Reviewed-on: https://gerrit.libreoffice.org/8842 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 04f5d3780fb0..d2e932eedfa3 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -6335,6 +6335,13 @@ void DocxAttributeOutput::FormatULSpace( const SvxULSpaceItem& rULSpace )
AddToAttrList( m_pParagraphSpacingAttrList,
FSNS( XML_w, XML_beforeAutospacing ), "1" );
}
+ else if (m_bParaBeforeAutoSpacing && m_nParaBeforeSpacing == -1)
+ {
+ AddToAttrList( m_pParagraphSpacingAttrList,
+ FSNS( XML_w, XML_beforeAutospacing ), "0" );
+ AddToAttrList( m_pParagraphSpacingAttrList,
+ FSNS( XML_w, XML_before ), OString::number( rULSpace.GetUpper() ).getStr() );
+ }
else
{
AddToAttrList( m_pParagraphSpacingAttrList,
@@ -6348,6 +6355,13 @@ void DocxAttributeOutput::FormatULSpace( const SvxULSpaceItem& rULSpace )
AddToAttrList( m_pParagraphSpacingAttrList,
FSNS( XML_w, XML_afterAutospacing ), "1" );
}
+ else if (m_bParaAfterAutoSpacing && m_nParaAfterSpacing == -1)
+ {
+ AddToAttrList( m_pParagraphSpacingAttrList,
+ FSNS( XML_w, XML_afterAutospacing ), "0" );
+ AddToAttrList( m_pParagraphSpacingAttrList,
+ FSNS( XML_w, XML_after ), OString::number( rULSpace.GetLower()).getStr() );
+ }
else
{
AddToAttrList( m_pParagraphSpacingAttrList,