summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-12-04 20:22:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-12-05 10:42:24 +0100
commit0c47fc7c0520b1a012443283c2662391090b8e95 (patch)
tree4b3af1737f35116e73ec80249840fa86dba6f3ba /vcl
parentcda2b94f6deec442c37ebd80dbf865890893a03c (diff)
no point setting mnDecimalDigits to overwrite it immediately
Change-Id: I1651ab51bebf7cfa88d55276f9aec337a903083c Reviewed-on: https://gerrit.libreoffice.org/84463 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/field.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index 2cd63600a5df..15798e8c8df1 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -549,11 +549,11 @@ NumericFormatter::NumericFormatter(Edit* pEdit)
// for fields
, mnFirst(mnMin)
, mnLast(mnMax)
- , mnDecimalDigits(2)
+ , mnDecimalDigits(0)
, mbThousandSep(true)
, mbShowTrailingZeros(true)
{
- SetDecimalDigits( 0 );
+ ReformatAll();
}
NumericFormatter::~NumericFormatter()