summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/linewidthctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls/linewidthctrl.cxx')
-rw-r--r--svx/source/tbxctrls/linewidthctrl.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/svx/source/tbxctrls/linewidthctrl.cxx b/svx/source/tbxctrls/linewidthctrl.cxx
index 0a6d75446819..61f48a0293e5 100644
--- a/svx/source/tbxctrls/linewidthctrl.cxx
+++ b/svx/source/tbxctrls/linewidthctrl.cxx
@@ -83,12 +83,11 @@ void SvxLineWidthToolBoxControl::StateChanged(
{
if ( eState == SfxItemState::DISABLED )
{
- pFld->Disable();
- pFld->SetText( "" );
+ pFld->set_sensitive(false);
}
else
{
- pFld->Enable();
+ pFld->set_sensitive(true);
if ( eState == SfxItemState::DEFAULT )
{
@@ -107,10 +106,12 @@ void SvxLineWidthToolBoxControl::StateChanged(
}
}
-
-VclPtr<vcl::Window> SvxLineWidthToolBoxControl::CreateItemWindow( vcl::Window *pParent )
+VclPtr<vcl::Window> SvxLineWidthToolBoxControl::CreateItemWindow(vcl::Window *pParent)
{
- return VclPtr<SvxMetricField>::Create( pParent, m_xFrame ).get();
+ VclPtr<SvxMetricField> pWindow = VclPtr<SvxMetricField>::Create(pParent, m_xFrame);
+ pWindow->Show();
+
+ return pWindow;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */