diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/field.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index b491ba53e3d7..7ed2a71addf3 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -940,7 +940,7 @@ void NumericField::Last() namespace { - Size calcMinimumSize(const SpinField &rSpinField, const NumericFormatter &rFormatter) + Size calcMinimumSize(const Edit &rSpinField, const NumericFormatter &rFormatter) { OUStringBuffer aBuf; sal_Int32 nTextLen; @@ -1003,6 +1003,11 @@ NumericBox::NumericBox( Window* pParent, const ResId& rResId ) : Show(); } +Size NumericBox::CalcMinimumSize() const +{ + return calcMinimumSize(*this, *this); +} + // ----------------------------------------------------------------------- NumericBox::~NumericBox() @@ -1935,6 +1940,11 @@ MetricBox::MetricBox( Window* pParent, const ResId& rResId ) : Show(); } +Size MetricBox::CalcMinimumSize() const +{ + return calcMinimumSize(*this, *this); +} + // ----------------------------------------------------------------------- MetricBox::~MetricBox() |