summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-08 13:30:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-08 13:45:03 +0000
commitdaa654fb44772009017b0c918903093147df1620 (patch)
treec14298da7b1d39608ca5761645223d5068a18b66 /vcl
parentef683ad85210455e64e9472161c91407fe173ddf (diff)
GtkComboBox->VclComboBoxNumeric
Change-Id: Iba1416692a619c1f566f26da5b06ed04342057b3
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/builder.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 0d4ca5764834..5aac570883dd 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1351,14 +1351,14 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri
if (!sPattern.isEmpty())
{
+ connectNumericFormatterAdjustment(id, sAdjustment);
OString sUnit = extractUnit(sPattern);
FieldUnit eUnit = detectMetricUnit(sUnit);
SAL_INFO("vcl.layout", "making metric box for " << name.getStr() << " " << sUnit.getStr());
- connectNumericFormatterAdjustment(id, sAdjustment);
- MetricBox *pBox = new MetricBox(pParent, nBits|WB_BORDER);
- if (bDropdown)
- pBox->EnableAutoSize(true);
+ MetricBox *pBox = new MetricBox(pParent, nBits);
+ pBox->EnableAutoSize(true);
pBox->SetUnit(eUnit);
+ pBox->SetDecimalDigits(extractDecimalDigits(sPattern));
if (eUnit == FUNIT_CUSTOM)
pBox->SetCustomUnitText(OStringToOUString(sUnit, RTL_TEXTENCODING_UTF8));
pWindow = pBox;