diff options
Diffstat (limited to 'vcl/source/control/field.cxx')
-rw-r--r-- | vcl/source/control/field.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index cc80afe75110..f1bc68c843c7 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -787,7 +787,10 @@ NumericField::NumericField( Window* pParent, const ResId& rResId ) : SpinField( WINDOW_NUMERICFIELD ) { if (Dialog::replace_buildable(pParent, rResId.GetId(), *this)) + { + SetField( this ); return; + } rResId.SetRT( RSC_NUMERICFIELD ); WinBits nStyle = ImplInitRes( rResId ) ; @@ -1654,7 +1657,10 @@ MetricField::MetricField( Window* pParent, const ResId& rResId ) : SpinField( WINDOW_METRICFIELD ) { if (Dialog::replace_buildable(pParent, rResId.GetId(), *this)) + { + SetField( this ); return; + } rResId.SetRT( RSC_METRICFIELD ); WinBits nStyle = ImplInitRes( rResId ) ; |