summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/itemwin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls/itemwin.cxx')
-rw-r--r--svx/source/tbxctrls/itemwin.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx
index 0b0ee21ee513..07cea3decb46 100644
--- a/svx/source/tbxctrls/itemwin.cxx
+++ b/svx/source/tbxctrls/itemwin.cxx
@@ -53,6 +53,8 @@ SvxMetricField::SvxMetricField(
, eDlgUnit(SfxModule::GetModuleFieldUnit(rFrame))
, mxFrame(rFrame)
{
+ InitControlBase(&m_xWidget->get_widget());
+
m_xWidget->set_range(0, 5000, FieldUnit::NONE);
m_xWidget->connect_value_changed(LINK(this, SvxMetricField, ModifyHdl));
m_xWidget->connect_focus_in(LINK(this, SvxMetricField, FocusInHdl));
@@ -168,13 +170,6 @@ void SvxMetricField::DataChanged( const DataChangedEvent& rDCEvt )
InterimItemWindow::DataChanged( rDCEvt );
}
-void SvxMetricField::GetFocus()
-{
- if (m_xWidget)
- m_xWidget->grab_focus();
- InterimItemWindow::GetFocus();
-}
-
void SvxFillTypeBox::Fill(weld::ComboBox& rListBox)
{
rListBox.freeze();