[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Dec 5 09:43:45 UTC 2019
vcl/source/control/field.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0c47fc7c0520b1a012443283c2662391090b8e95
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Dec 4 20:22:59 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Dec 5 10:42:24 2019 +0100
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 at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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()
More information about the Libreoffice-commits
mailing list