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-07-31 11:30:19 +0000 |
commit | 0db37d785311aa2294f60b750fce4dadff6c75e0 (patch) | |
tree | c04a76f78bbd01abf962a82d2735a712dfda7f29 /sc/source | |
parent | dd4befa992300cc068467021c81594ffcea1be0c (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.
Change-Id: Ia367b491b71fa7b4480cdd03408c0c0315425dc8
Reviewed-on: https://gerrit.libreoffice.org/17439
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source')
-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: |