diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2017-02-07 19:41:34 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-02-07 21:34:58 +0200 |
commit | 5350dfca60c90845df9143bc25002dfc45c3d49f (patch) | |
tree | 263eead01457844cfd5706e0c866995bbb9902fd /svx | |
parent | afe76d1a4e0c37cf52b623a3b9b4e5d1a7b96094 (diff) |
tdf#105631 Notebookbar doesn't use wide buttons
So we want non-split behavior only in SidebarToolBox,
not in the derived NotebookbarToolBox.
Change-Id: I064bbe59b97da301a13889ad78a31227cfd693ee
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index c8862ca78ff3..efedc302b1bf 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -18,6 +18,7 @@ */ #include <string> +#include <typeinfo> #include <utility> #include <comphelper/propertysequence.hxx> @@ -2767,7 +2768,7 @@ SvxColorToolBoxControl::SvxColorToolBoxControl( sal_uInt16 nId, ToolBox& rTbx ): ImplInheritanceHelper( nSlotId, nId, rTbx ), - m_bSplitButton(dynamic_cast< sfx2::sidebar::SidebarToolBox* >(&rTbx) == nullptr), + m_bSplitButton(typeid(rTbx) != typeid(sfx2::sidebar::SidebarToolBox)), m_aColorSelectFunction(PaletteManager::DispatchColorCommand) { switch( nSlotId ) |