From 26b3ca54aff24c34718c572675ad72b9687b3adb Mon Sep 17 00:00:00 2001 From: Laurent Balland-Poirier Date: Thu, 30 Jul 2015 20:49:46 +0200 Subject: 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 Tested-by: Eike Rathke --- sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sc') 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: -- cgit