cui/source/tabpages/border.cxx |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

New commits:
commit 11d13f46a825811067997272f485e45eeb1bba7b
Author: Nickson Thanda <nicksonthand...@msn.com>
Date:   Wed May 16 22:23:45 2018 +0100

    tdf#88961 change table line style color to make it more visible
    
    Table line styles are now black and 0.05pt.
    
    Change-Id: Ifa613c2c26ecb97e2d466e94a21c4120065969c9
    Reviewed-on: https://gerrit.libreoffice.org/54461
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Muhammet Kara <muhammet.k...@pardus.org.tr>
    Tested-by: Muhammet Kara <muhammet.k...@pardus.org.tr>

diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx
index 6107c30a4ebc..186c77a13827 100644
--- a/cui/source/tabpages/border.cxx
+++ b/cui/source/tabpages/border.cxx
@@ -565,7 +565,7 @@ void SvxBorderTabPage::Reset( const SfxItemSet* rSet )
                         sal_Int64( nWidth ), m_pLineWidthMF->GetDecimalDigits( 
),
                         MapUnit::MapTwip, m_pLineWidthMF->GetUnit() ));
             m_pLineWidthMF->SetValue( nWidthPt );
-            m_pLbLineStyle->SetWidth( nWidth );
+            m_pLbLineStyle->SetWidth(5);
 
             // then set the style
             m_pLbLineStyle->SelectEntry( nStyle );
@@ -580,7 +580,7 @@ void SvxBorderTabPage::Reset( const SfxItemSet* rSet )
             aColor = COL_BLACK;
 
         m_pLbLineColor->SelectEntry(aColor);
-        m_pLbLineStyle->SetColor(aColor);
+        m_pLbLineStyle->SetColor(GetTextColor());
 
         // Select all visible lines, if they are all equal.
         if( bWidthEq && bColorEq )
@@ -922,10 +922,6 @@ IMPL_LINK(SvxBorderTabPage, SelColHdl_Impl, 
SvxColorListBox&, rColorBox, void)
 {
     Color aColor = rColorBox.GetSelectEntryColor();
     m_pFrameSel->SetColorToSelection(aColor);
-    if(aColor == COL_WHITE)
-      m_pLbLineStyle->SetColor(COL_BLACK);
-    else
-      m_pLbLineStyle->SetColor(aColor);
 }
 
 IMPL_LINK_NOARG(SvxBorderTabPage, ModifyWidthHdl_Impl, Edit&, void)
@@ -934,7 +930,6 @@ IMPL_LINK_NOARG(SvxBorderTabPage, ModifyWidthHdl_Impl, 
Edit&, void)
                 m_pLineWidthMF->GetValue( ),
                 m_pLineWidthMF->GetDecimalDigits( ),
                 m_pLineWidthMF->GetUnit(), MapUnit::MapTwip ));
-    m_pLbLineStyle->SetWidth( nVal );
 
     m_pFrameSel->SetStyleToSelection( nVal,
         m_pLbLineStyle->GetSelectEntryStyle() );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to