vcl/source/control/field.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0c47fc7c0520b1a012443283c2662391090b8e95
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Dec 4 20:22:59 2019 +0000
Commit:     Caolán McNamara <caol...@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 <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@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()
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to