[Libreoffice-commits] core.git: Branch 'private/kohei/double-border-fix' - editeng/source

Kohei Yoshida kohei.yoshida at collabora.com
Tue Mar 4 16:37:02 PST 2014


 editeng/source/items/borderline.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 215ee25d872188bbc27f4f9eadcc0d2b1a12b122
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Tue Mar 4 19:34:06 2014 -0500

    Bring this back. Apparently Word's double border behaves this way.
    
    While Excel's double border doesn't.
    
    Change-Id: I2b450591914fa90dc4619a9ea776978e8a23e45e

diff --git a/editeng/source/items/borderline.cxx b/editeng/source/items/borderline.cxx
index 9ddd8fa..2da1753 100644
--- a/editeng/source/items/borderline.cxx
+++ b/editeng/source/items/borderline.cxx
@@ -309,7 +309,11 @@ BorderWidthImpl SvxBorderLine::getWidthImpl( SvxBorderStyle nStyle )
         // Double lines
 
         case DOUBLE:
-            aImpl = BorderWidthImpl(CHANGE_DIST, 10.0, 10.0, 1.0);
+            aImpl = BorderWidthImpl(
+                    CHANGE_LINE1 | CHANGE_LINE2 | CHANGE_DIST,
+                    // fdo#46112 fdo#38542 fdo#43249:
+                    // non-constant witdths must sum to 1
+                    1.0/3.0, 1.0/3.0, 1.0/3.0 );
             break;
 
         case THINTHICK_SMALLGAP:


More information about the Libreoffice-commits mailing list