summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-01-22 09:01:04 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-01-22 09:03:08 -0500
commitd19de47c2da0867ded7e9045f06957aa4a1f277e (patch)
treee68e378f066528942103b43483c68f5e915c6c09
parent81286443129b11426787b83ae134edeb3121b8bf (diff)
fdo#73886: Check the right width in case the left width is zero.
Change-Id: I6a0b1dd7382f1d3c7266ba56dbfdc557737380c2
-rw-r--r--drawinglayer/source/processor2d/vclpixelprocessor2d.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx
index fc9a19c0fd33..891d71f3dfdf 100644
--- a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx
@@ -302,6 +302,8 @@ namespace drawinglayer
const basegfx::BColor aLineColor =
maBColorModifierStack.getModifiedColor(rSource.getRGBColorLeft());
double nThick = rtl::math::round(rSource.getLeftWidth());
+ if (!nThick)
+ nThick = rtl::math::round(rSource.getRightWidth());
bool bDouble = rSource.getStyle() == table::BorderLineStyle::DOUBLE;
@@ -412,6 +414,9 @@ namespace drawinglayer
return false;
double nThick = rtl::math::round(rSource.getLeftWidth());
+ if (!nThick)
+ nThick = rtl::math::round(rSource.getRightWidth());
+
const basegfx::BColor aLineColor =
maBColorModifierStack.getModifiedColor(rSource.getRGBColorLeft());