diff options
author | Pierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com> | 2012-09-28 09:58:44 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-10-02 08:39:18 +0000 |
commit | 559a1a5d28d94e915150f94d5267a4f720d175b0 (patch) | |
tree | 432098f0f4868151d5192980422d719bf90165c0 | |
parent | 9a5eb5f51d29b3af4e2d23653508196cc68c0b87 (diff) |
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@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index cf6f43eaa796..bce14c8a391d 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( ); |