[Libreoffice-commits] .: writerfilter/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Jan 11 08:47:56 PST 2013
writerfilter/source/dmapper/DomainMapperTableHandler.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 194ba3a2cacbb5438dfcb8fb35167055e01ca251
Author: Pierre-Eric Pelloux-Prayer <pierre-eric at lanedo.com>
Date: Fri Jan 11 17:40:39 2013 +0100
docx import: fix incorrect nested table margins
Change-Id: I07f0f47fcbd3d463d7831820cde338d8d59d9b68
diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
index b5c993b..46c418d 100644
--- a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
@@ -414,7 +414,9 @@ TableStyleSheetEntry * DomainMapperTableHandler::endTableGetTableStyle(TableInfo
{
aTableBorder.LeftLine = aLeftBorder;
aTableBorder.IsLeftLineValid = sal_True;
- rInfo.nLeftBorderDistance += aLeftBorder.LineWidth * 0.5;
+ // Only top level table position depends on border width
+ if (rInfo.nNestLevel == 1)
+ rInfo.nLeftBorderDistance += aLeftBorder.LineWidth * 0.5;
}
if (lcl_extractTableBorderProperty(m_aTableProperties, PROP_RIGHT_BORDER, rInfo, aBorderLine))
{
More information about the Libreoffice-commits
mailing list