summaryrefslogtreecommitdiff
path: root/sw/source/filter
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-10-16 18:00:45 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-10-17 18:02:33 +0200
commit2c541ea901369f0267921e1e73de0d74dd2a8fc9 (patch)
tree79c79bf07982d3872632ee63c4b916ccb2f27d10 /sw/source/filter
parent7d17e8e1798b7120b9e8559d042de2afc0a078e3 (diff)
tdf#119885: OOXML import: try to get cell paddings as Word does
Change-Id: I7abd715b6bb71d6e2e01939c4cf849d94eb6a103 Reviewed-on: https://gerrit.libreoffice.org/61843 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/61877 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/filter')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index bd0fc3272407..24e628d50bda 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -3205,15 +3205,6 @@ static void impl_cellMargins( FSHelperPtr const & pSerializer, const SvxBoxItem&
continue;
}
- if ( aBorders[i] == SvxBoxItemLine::LEFT ) {
- // Office's cell margin is measured from the right of the border.
- // While LO's cell spacing is measured from the center of the border.
- // So we add half left-border width to tblIndent value
- const SvxBorderLine* pLn = rBox.GetLine( *pBrd );
- if (pLn)
- nDist -= pLn->GetWidth() * 0.5;
- }
-
if (!tagWritten) {
pSerializer->startElementNS( XML_w, tag, FSEND );
tagWritten = true;