diff options
Diffstat (limited to 'svx/source/tbxctrls/tbcontrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index a0513494409f..3a1aec034b78 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -264,13 +264,7 @@ private: } virtual void DataChanged(const DataChangedEvent& rDCEvt) override; - virtual void GetFocus() override - { - if (m_xWidget) - m_xWidget->grab_focus(); - InterimItemWindow::GetFocus(); - } - void SetOptimalSize(); + void SetOptimalSize(); }; class SvxFontNameBox_Impl; @@ -879,6 +873,8 @@ SvxStyleBox_Impl::SvxStyleBox_Impl(vcl::Window* pParent, , SvxStyleBox_Base(m_xBuilder->weld_combo_box("applystyle"), rCommand, eFamily, rDispatchProvider, _xFrame, rClearFormatKey, rMoreKey, bInSpec, rCtrl) { + InitControlBase(m_xWidget.get()); + set_id("applystyle"); SetOptimalSize(); } |