Kaydet (Commit) 5350dfca authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

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
üst afe76d1a
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment