diff options
author | Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> | 2015-07-30 20:49:46 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-08-17 10:19:45 +0000 |
commit | 26b3ca54aff24c34718c572675ad72b9687b3adb (patch) | |
tree | 019bd3d2c0c05f53d2d66835d546636ab41b60f8 /sc | |
parent | 0deb80469574d5a1090eb9c17f9a85ecd0fd34be (diff) |
tdf#44399 Do not display 0 decimal for General format
For General (Standard) format, "0" is not the number of decimal places
Replaced by an empty string in dialog UI and Sidebar.
(cherry picked from commit 0db37d785311aa2294f60b750fce4dadff6c75e0)
Change-Id: Ia367b491b71fa7b4480cdd03408c0c0315425dc8
Reviewed-on: https://gerrit.libreoffice.org/17771
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx index b832400f231e..4ec8606c41b3 100644 --- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx +++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx @@ -320,7 +320,10 @@ void NumberFormatPropertyPanel::NotifyItemUpdate( } mpBtnThousand->Check(bThousand); mpBtnNegRed->Check(bNegRed); - mpEdDecimals->SetValue(nPrecision); + if ( mpLbCategory->GetSelectEntryPos() == 0 ) + mpEdDecimals->SetText(""); // tdf#44399 + else + mpEdDecimals->SetValue(nPrecision); mpEdLeadZeroes->SetValue(nLeadZeroes); } default: |