| author | Michael Stahl <mstahl@redhat.com> | 2012-01-25 16:44:36 (GMT) |
|---|---|---|
| committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-01-27 08:40:41 (GMT) |
| commit | 7cda0a56bf3f9d09740871d85f0557cf0b4a7a76 (patch) (side-by-side diff) | |
| tree | 5c46a1d5e082090c0336a5d38333578822c3af98 | |
| parent | f035720f00ac2b1b596ad3cfc99667be5d86d602 (diff) | |
| download | core-7cda0a56bf3f9d09740871d85f0557cf0b4a7a76.zip core-7cda0a56bf3f9d09740871d85f0557cf0b4a7a76.tar.gz | |
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.
Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
| -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 4db411c..f1bfca6 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 ); } |
