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

Nickson Thanda nicksonthanda10 at msn.com
Wed Apr 4 20:29:34 UTC 2018


 cui/source/tabpages/border.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit e0a641f863be91c5407dac5fc58edc33b5703116
Author: Nickson Thanda <nicksonthanda10 at msn.com>
Date:   Wed Apr 4 01:52:25 2018 +0100

    tdf#88961 table line style color visible when color is white
    
    If the selected color is white, then display the line styles in black
    else, display the line style in the selected color
    
    Change-Id: Iff21abcf5c2a6d007e154b87d7fa42a673fa00fa
    Reviewed-on: https://gerrit.libreoffice.org/52355
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx
index 6d5f8e00b661..96ffc5c5658c 100644
--- a/cui/source/tabpages/border.cxx
+++ b/cui/source/tabpages/border.cxx
@@ -922,7 +922,10 @@ IMPL_LINK(SvxBorderTabPage, SelColHdl_Impl, SvxColorListBox&, rColorBox, void)
 {
     Color aColor = rColorBox.GetSelectEntryColor();
     m_pFrameSel->SetColorToSelection(aColor);
-    m_pLbLineStyle->SetColor(aColor);
+    if(aColor == COL_WHITE)
+      m_pLbLineStyle->SetColor(COL_BLACK);
+    else
+      m_pLbLineStyle->SetColor(aColor);
 }
 
 IMPL_LINK_NOARG(SvxBorderTabPage, ModifyWidthHdl_Impl, Edit&, void)


More information about the Libreoffice-commits mailing list