summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/tbxcolorupdate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls/tbxcolorupdate.cxx')
-rw-r--r--svx/source/tbxctrls/tbxcolorupdate.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbxcolorupdate.cxx b/svx/source/tbxctrls/tbxcolorupdate.cxx
index b3e4fc7c0618..53376bf1d692 100644
--- a/svx/source/tbxctrls/tbxcolorupdate.cxx
+++ b/svx/source/tbxctrls/tbxcolorupdate.cxx
@@ -92,7 +92,11 @@ namespace svx
if( aColor.GetColor() == COL_AUTO )
aColor = Color( COL_TRANSPARENT );
- if( ( maCurColor != aColor ) || bSizeChanged || bDisplayModeChanged )
+ // 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 ) || bSizeChanged || bDisplayModeChanged || ( aColor == COL_BLACK ) )
{
// create an empty bitmap, and copy the original bitmap inside
// (so that it grows in case the original bitmap was smaller)