summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2017-10-08 00:13:40 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2017-10-08 19:57:39 +0200
commitbef9aeb9c4c4e9641cfcaccbcea52ce1a87b6550 (patch)
treea56d640bb9f3a909886679822c6462f844929a22 /svx
parent7396222599ceda7ef3b62af45d545058bcc2047b (diff)
Remove some old workaround
Can't reproduce the original problem anymore, and in the meantime the sidebar color button code was totally replaced with a SvxColorToolBoxControl based solution (see tdf#84844). So no evidence we still need this special handling of COL_BLACK. Change-Id: I9ab5e65e6ea1dc599ba850cfcaae62c73947159a Reviewed-on: https://gerrit.libreoffice.org/43237 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/tbxcolorupdate.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/svx/source/tbxctrls/tbxcolorupdate.cxx b/svx/source/tbxctrls/tbxcolorupdate.cxx
index 56cff24bc5df..7c89b1edd6f2 100644
--- a/svx/source/tbxctrls/tbxcolorupdate.cxx
+++ b/svx/source/tbxctrls/tbxcolorupdate.cxx
@@ -79,12 +79,7 @@ namespace svx
if (aColor.GetColor() == COL_AUTO)
aColor = Color(COL_TRANSPARENT);
- // For a shape selected in 'Draw', when color selected in Sidebar > Line > Color
- // is COL_BLACK, then (maCurColor != aColor) becomes 'false', therefore we take
- // explicit care of COL_BLACK from the last argument in the condition so that the
- // Update() does its routine job appropriately !
- if ((maCurColor != aColor) || (aColor == COL_BLACK) ||
- bSizeChanged || bDisplayModeChanged || bForceUpdate )
+ if ((maCurColor != aColor) || bSizeChanged || bDisplayModeChanged || bForceUpdate)
{
// create an empty bitmap, and copy the original bitmap inside
// (so that it grows in case the original bitmap was smaller)