Kaydet (Commit) 36e43b52 authored tarafından Michael Stahl's avatar Michael Stahl

fdo#43249: WW8: fix double border import:

The border widths are tripled on import, because that is effectively
what SetWidth does for DOUBLE borders; set a divisor of 3 similar to
e2ffb713
70a6a4d4

Change-Id: I40b175bedc1ed2d564be126bf9e6870b43474aba
üst d10305bb
...@@ -1570,6 +1570,10 @@ sal_Int32 SwWW8ImplReader::MatchSdrBoxIntoFlyBoxItem(const Color& rLineColor, ...@@ -1570,6 +1570,10 @@ sal_Int32 SwWW8ImplReader::MatchSdrBoxIntoFlyBoxItem(const Color& rLineColor,
aLine.SetWidth( nLineThick ); // No conversion here, nLineThick is already in twips aLine.SetWidth( nLineThick ); // No conversion here, nLineThick is already in twips
aLine.SetStyle( nIdx ); aLine.SetStyle( nIdx );
if (editeng::DOUBLE == nIdx)
{ // fdo#43249: divide width by 3 for outer line, gap, inner line
aLine.ScaleMetrics(1, 3);
}
for(sal_uInt16 nLine = 0; nLine < 4; ++nLine) for(sal_uInt16 nLine = 0; nLine < 4; ++nLine)
rBox.SetLine(new SvxBorderLine( aLine ), nLine); rBox.SetLine(new SvxBorderLine( aLine ), nLine);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment