summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-28 09:33:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-28 12:11:56 +0200
commit9282871ab05721c59f7946879a5f28f2e8af96a1 (patch)
treef2959760a60490f899ac641376492de74d425343 /svx
parentf67554d23c2efbdd0e70a8a35a694661ea4e054a (diff)
Related: tdf#135121 update widebuttons on icon-size change too
as well as the split-buttons. We don't draw into the icon for widebuttons, but we do need to draw the icon into the replacement wider image so we want to update for widebuttons too Change-Id: Ia37f7de7faa08e63a498ff474a46a98566930acd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99575 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 3a1aec034b78..2132939cc141 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -3341,10 +3341,10 @@ void SvxColorToolBoxControl::execute(sal_Int16 /*nSelectModifier*/)
sal_Bool SvxColorToolBoxControl::opensSubToolbar()
{
- // For a split button, we mark this controller as a sub-toolbar controller,
- // so we get notified (through updateImage method) on button image changes,
- // and could redraw the last used color on top of it.
- return m_bSplitButton;
+ // We mark this controller as a sub-toolbar controller, so we get notified
+ // (through updateImage method) on button image changes, and could redraw
+ // the last used color on top of it.
+ return true;
}
void SvxColorToolBoxControl::updateImage()