From 11d13f46a825811067997272f485e45eeb1bba7b Mon Sep 17 00:00:00 2001 From: Nickson Thanda Date: Wed, 16 May 2018 22:23:45 +0100 Subject: 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 Reviewed-by: Muhammet Kara Tested-by: Muhammet Kara --- cui/source/tabpages/border.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'cui/source/tabpages') 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() ); -- cgit