[Libreoffice-commits] core.git: sw/source
Adam Co
rattles2013 at gmail.com
Mon May 13 08:13:18 PDT 2013
sw/source/filter/ww8/docxattributeoutput.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit e9e1d7fc4de8fc44adf35fe302c75591b3c5bc18
Author: Adam Co <rattles2013 at gmail.com>
Date: Mon May 13 13:58:13 2013 +0300
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 at free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 6130b7d..9666f76 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();
More information about the Libreoffice-commits
mailing list