diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-01-25 17:44:36 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-01-27 09:37:54 +0100 |
commit | e2ffb71305c5f085eec6d396651c76d6daee3406 (patch) | |
tree | 1cfa6f79c92f816ae231773804e50241d0a227e1 | |
parent | d9ebbe3e5f0beb31364df524b9136958012558cf (diff) |
fdo#38542: sw: ODF import: divide width by 3 for "double" borders
The problem is that the width from the fo:border{,-left,-right,-top,-bottom}
attributes is effectively tripled for "double" borders.
-rw-r--r-- | sw/source/filter/xml/xmlithlp.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/filter/xml/xmlithlp.cxx b/sw/source/filter/xml/xmlithlp.cxx index 18a1b6b02410..cd383b58765f 100644 --- a/sw/source/filter/xml/xmlithlp.cxx +++ b/sw/source/filter/xml/xmlithlp.cxx @@ -212,6 +212,10 @@ sal_Bool lcl_frmitems_setXMLBorder( SvxBorderLine*& rpLine, rpLine->GetOutWidth(); rpLine->SetWidth( nWidth ); + if (bDouble) + { // fdo#38542: divide width by 3 for outer line, gap, inner line + rpLine->ScaleMetrics(1, 3); + } } lcl_frmitems_setXMLBorderStyle( *rpLine, nStyle ); } |