diff options
author | Nickson Thanda <nicksonthanda10@msn.com> | 2018-04-04 01:52:25 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-04-04 22:29:12 +0200 |
commit | e0a641f863be91c5407dac5fc58edc33b5703116 (patch) | |
tree | e22ba329bef0144748fb67c2cf0901878fbf9a8b /cui | |
parent | 9762c9ab98a2b9ea86186a6da7b77031f1416bed (diff) |
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@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/border.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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) |