summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2015-07-30 20:49:46 +0200
committerEike Rathke <erack@redhat.com>2015-07-31 11:30:19 +0000
commit0db37d785311aa2294f60b750fce4dadff6c75e0 (patch)
treec04a76f78bbd01abf962a82d2735a712dfda7f29 /sc/source
parentdd4befa992300cc068467021c81594ffcea1be0c (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.cxx5
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: