summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2017-12-18 15:03:02 -0900
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-01-25 21:23:32 +0100
commit4c6fc246c9d9388b7a512cb4371bc6bb09e8581b (patch)
tree69c84c7243849ec56b62e4cfa0f9c0cc1f639ce3
parentd76fc1a87a31bf513f844be933996334ea85446c (diff)
tdf#114519 Update cell content on sidebar number format change
In Calc, when the cursor is flashing in a cell (input mode) and the sidebar Number Format panel 'Select a category of contents' drop down selection is changed the cell contents does not update on selection change. This patch ends cell input mode on 'Select a category of contents' drop down change allowing cell to be updated to the selected number format. Change-Id: Ia1f46499ada2cfbcc82bd5babb6cf56ae0d6259c Reviewed-on: https://gerrit.libreoffice.org/46883 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 7416c2ea6c25ec1ff60ce1055b79b216cd501140) Reviewed-on: https://gerrit.libreoffice.org/48632 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/ui/view/formatsh.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index 82f5ba3fbc97..b6522696ad34 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -1004,6 +1004,7 @@ void ScFormatShell::ExecuteNumFormat( SfxRequest& rReq )
{
switch ( nSlot )
{
+ case SID_NUMBER_TYPE_FORMAT:
case SID_NUMBER_TWODEC:
case SID_NUMBER_SCIENTIFIC:
case SID_NUMBER_DATE: