diff options
author | Adam Co <rattles2013@gmail.com> | 2013-05-13 13:58:13 +0300 |
---|---|---|
committer | Bosdonnat Cedric <cedric.bosdonnat@free.fr> | 2013-05-13 15:12:57 +0000 |
commit | e9e1d7fc4de8fc44adf35fe302c75591b3c5bc18 (patch) | |
tree | 9d1d2c965804f485de795d2507f0a876bbf0319d | |
parent | 1472b5f87314fe660ef1a7b254e51272669f12f6 (diff) |
fdo#64531 : Tab-stops exported to DOCX added too much indentation
Change-Id: I12747006c8aac663f9529b495914f4a08301c66f
Reviewed-on: https://gerrit.libreoffice.org/3884
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 6130b7d51f49..9666f76d00b8 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -4163,7 +4163,9 @@ static void impl_WriteTabElement( FSHelperPtr pSerializer, break; } - pTabElementAttrList->add( FSNS( XML_w, XML_pos ), OString::valueOf( rTab.GetTabPos() + nCurrentLeft ) ); + // Because GetTabPos already includes indent, we don't need to add nCurrentLeft (CurrentLeft is indentation information) + //pTabElementAttrList->add( FSNS( XML_w, XML_pos ), OString::valueOf( rTab.GetTabPos() + nCurrentLeft ) ); + pTabElementAttrList->add( FSNS( XML_w, XML_pos ), OString::valueOf( rTab.GetTabPos() ) ); sal_Unicode cFillChar = rTab.GetFill(); |