diff options
-rw-r--r-- | vcl/source/window/builder.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 1a6546b689a1..bebe56062866 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -1877,18 +1877,10 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString & if (extractHasFrame(rMap)) nBits |= WB_BORDER; - if (m_bLegacy) - { - connectNumericFormatterAdjustment(id, sAdjustment); - xWindow = VclPtr<NumericField>::Create(pParent, nBits); - } - else - { - connectFormattedFormatterAdjustment(id, sAdjustment); - VclPtrInstance<FormattedField> xField(pParent, nBits); - xField->GetFormatter().SetMinValue(0); - xWindow = xField; - } + connectFormattedFormatterAdjustment(id, sAdjustment); + VclPtrInstance<FormattedField> xField(pParent, nBits); + xField->GetFormatter().SetMinValue(0); + xWindow = xField; } else if (name == "GtkLinkButton") xWindow = VclPtr<FixedHyperlink>::Create(pParent, WB_CENTER|WB_VCENTER|WB_3DLOOK|WB_NOLABEL); |