[Libreoffice-commits] .: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 2 01:39:36 PDT 2012
sw/source/filter/ww8/docxattributeoutput.cxx | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
New commits:
commit 559a1a5d28d94e915150f94d5267a4f720d175b0
Author: Pierre-Eric Pelloux-Prayer <pierre-eric at lanedo.com>
Date: Fri Sep 28 09:58:44 2012 +0200
docx export: always write tblInd attribute (even when equal to 0)
Otherwise when opening the docx in Office table may get misplaced.
Change-Id: Ic1df8d941c72a224d2db189ededfc5e134e5683a
Reviewed-on: https://gerrit.libreoffice.org/718
Reviewed-by: Miklos Vajna <vmiklos at suse.cz>
Tested-by: Miklos Vajna <vmiklos at suse.cz>
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index cf6f43e..bce14c8 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -1813,12 +1813,11 @@ void DocxAttributeOutput::TableDefinition( ww8::WW8TableNodeInfoInner::Pointer_t
TableBidi( pTableTextNodeInfoInner );
- // Table indent
- if ( nIndent != 0 )
- m_pSerializer->singleElementNS( XML_w, XML_tblInd,
- FSNS( XML_w, XML_w ), OString::valueOf( nIndent ).getStr( ),
- FSNS( XML_w, XML_type ), "dxa",
- FSEND );
+ // Table indent (need to get written even if == 0)
+ m_pSerializer->singleElementNS( XML_w, XML_tblInd,
+ FSNS( XML_w, XML_w ), OString::valueOf( nIndent ).getStr( ),
+ FSNS( XML_w, XML_type ), "dxa",
+ FSEND );
// Merge the marks for the ordered elements
m_pSerializer->mergeTopMarks( );
More information about the Libreoffice-commits
mailing list