summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-23 14:33:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-23 22:10:39 +0200
commit40673b1710d95c58d2008c083cae542a2c226c40 (patch)
tree282aea05fff583473b6ea628775d8f84ee7f8cc8 /vcl/source/window
parent33e0f4c8f1a38ed06508eb0754c7b6fe9cc9f2c8 (diff)
GtkSpinButton->NumericField no longer used
Change-Id: I2015f02840e23063fae9295437aa2d5e26fe613b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99319 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/builder.cxx16
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);