docx import: fix incorrect nested table margins

Change-Id: I07f0f47fcbd3d463d7831820cde338d8d59d9b68
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2013-01-11 17:40:39 +01:00
parent f132eaa5a6
commit 194ba3a2ca

View File

@@ -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))
{