diff options
author | Eike Rathke <erack@redhat.com> | 2012-01-26 14:03:13 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-01-26 14:10:44 +0100 |
commit | 34315e7ec4062f9521cd19951b5f7f6ad9ce0d2e (patch) | |
tree | b53ebf8f79dfb1bf56098ada9e86712324298653 | |
parent | 97c66b3b13528cc50f271217663718b3d6681bd9 (diff) |
resolved fdo#38595 border width lost in ODF import
-rw-r--r-- | sc/source/filter/xml/xmlstyli.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/filter/xml/xmlstyli.cxx b/sc/source/filter/xml/xmlstyli.cxx index 7691c4b13010..72155e68ba02 100644 --- a/sc/source/filter/xml/xmlstyli.cxx +++ b/sc/source/filter/xml/xmlstyli.cxx @@ -170,12 +170,14 @@ void ScXMLCellImportPropertyMapper::finished(::std::vector< XMLPropertyState >& pBorders[i]->maValue >>= aBorderLine; if( pBorderWidths[i] ) { + // Merge style:border-line-width values to fo:border values. Do + // not override fo:border line width or line style with an + // empty value! table::BorderLine2 aBorderLineWidth; pBorderWidths[i]->maValue >>= aBorderLineWidth; aBorderLine.OuterLineWidth = aBorderLineWidth.OuterLineWidth; aBorderLine.InnerLineWidth = aBorderLineWidth.InnerLineWidth; aBorderLine.LineDistance = aBorderLineWidth.LineDistance; - aBorderLine.LineWidth = aBorderLineWidth.LineWidth; pBorders[i]->maValue <<= aBorderLine; } } @@ -194,7 +196,6 @@ void ScXMLCellImportPropertyMapper::finished(::std::vector< XMLPropertyState >& aBorderLine.OuterLineWidth = aBorderLineWidth.OuterLineWidth; aBorderLine.InnerLineWidth = aBorderLineWidth.InnerLineWidth; aBorderLine.LineDistance = aBorderLineWidth.LineDistance; - aBorderLine.LineWidth = aBorderLineWidth.LineWidth; pDiagBorders[i]->maValue <<= aBorderLine; if (pDiagBorderWidths[i]) pDiagBorderWidths[i]->mnIndex = -1; |