summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNickson Thanda <nicksonthanda10@msn.com>2018-05-16 22:23:45 +0100
committerMuhammet Kara <muhammet.kara@pardus.org.tr>2018-06-07 14:07:01 +0200
commit11d13f46a825811067997272f485e45eeb1bba7b (patch)
tree9e6dc9e3616e2f95f938615b949ac191ff68146d
parentd46c32140fdb05758c039dd27552b1788faac104 (diff)
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 <ci@libreoffice.org> Reviewed-by: Muhammet Kara <muhammet.kara@pardus.org.tr> Tested-by: Muhammet Kara <muhammet.kara@pardus.org.tr>
-rw-r--r--cui/source/tabpages/border.cxx9
1 files changed, 2 insertions, 7 deletions
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() );