[Libreoffice-commits] core.git: drawinglayer/source

Kohei Yoshida kohei.yoshida at collabora.com
Wed Jan 22 06:02:12 PST 2014


 drawinglayer/source/processor2d/vclpixelprocessor2d.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit d19de47c2da0867ded7e9045f06957aa4a1f277e
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Wed Jan 22 09:01:04 2014 -0500

    fdo#73886: Check the right width in case the left width is zero.
    
    Change-Id: I6a0b1dd7382f1d3c7266ba56dbfdc557737380c2

diff --git a/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx b/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx
index fc9a19c..891d71f 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());
 


More information about the Libreoffice-commits mailing list