summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-07-22 14:01:40 +0200
committerKohei Yoshida <libreoffice@kohei.us>2014-07-22 13:23:47 +0000
commit17e55304319a6046e649adcfc5d3fbd573d5d43e (patch)
tree9b8a8cff29c2f1ff89f216cab35800051002d2f2
parent4d003b92fa632d38909543b7317ceb75c96beeac (diff)
fdo#79221: Wrong rendering of bottom and right character border
Regression from 2cd1673f41cb5bd8502a9a48a5721244660fe3a0. SetMirrorWidths() works only when there are two lines (double border), but breaks one line borders. Change-Id: I2727afbc071bb4038c6cef18e6b96c796ef3a8b9 (cherry picked from commit bdbf6cee5a3a012412699dba103b9f6430084722) Reviewed-on: https://gerrit.libreoffice.org/10456 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
-rw-r--r--sw/source/core/layout/paintfrm.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 3e4ed878126d..3098638ab1ff 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -5080,7 +5080,8 @@ void PaintCharacterBorder(
if( aBottomBorder )
{
- aBottomBorder->SetMirrorWidths(true);
+ if( aBottomBorder->isDouble() )
+ aBottomBorder->SetMirrorWidths(true);
Point aLeftTop(
aAlignedRect.Left(),
@@ -5118,7 +5119,8 @@ void PaintCharacterBorder(
if( aRightBorder )
{
- aRightBorder->SetMirrorWidths(true);
+ if( aRightBorder->isDouble() )
+ aRightBorder->SetMirrorWidths(true);
Point aLeftTop(
aAlignedRect.Right() - aRightBorder.get().GetScaledWidth(),