From 4c6fc246c9d9388b7a512cb4371bc6bb09e8581b Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Mon, 18 Dec 2017 15:03:02 -0900 Subject: 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 Tested-by: Eike Rathke (cherry picked from commit 7416c2ea6c25ec1ff60ce1055b79b216cd501140) Reviewed-on: https://gerrit.libreoffice.org/48632 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- sc/source/ui/view/formatsh.cxx | 1 + 1 file changed, 1 insertion(+) 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: -- cgit v1.2.3