From 5a8a57703cad29ec2865390f3ced34af0e82b33f Mon Sep 17 00:00:00 2001 From: abdulmajeed ahmed Date: Sat, 27 Apr 2013 12:07:59 +0300 Subject: fdo#63592 Solve context numerical problem when changing text direction when you change the text direction it should update the numerical type but it dosen't. this patch will get you out of edit mode before changing text direction and after finish the change it will get you in again Change-Id: I5598fd9dab823c738a812537743695ec88690a24 Reviewed-on: https://gerrit.libreoffice.org/3629 Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist --- sc/source/ui/view/formatsh.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx index 5281d79bf65d..656f6080be47 100644 --- a/sc/source/ui/view/formatsh.cxx +++ b/sc/source/ui/view/formatsh.cxx @@ -2056,7 +2056,13 @@ void ScFormatShell::ExecuteTextDirection( SfxRequest& rReq ) { ScTabViewShell* pTabViewShell = GetViewData()->GetViewShell(); pTabViewShell->HideListBox(); // Autofilter-DropDown-Listbox - + bool bEditMode = false; + if ( GetViewData()->HasEditView( GetViewData()->GetActivePart() ) ) + { + bEditMode=true; + SC_MOD()->InputEnterHandler(); + pTabViewShell->UpdateInputHandler(); + } sal_uInt16 nSlot = rReq.GetSlot(); switch( nSlot ) { @@ -2141,6 +2147,8 @@ void ScFormatShell::ExecuteTextDirection( SfxRequest& rReq ) } break; } + if (bEditMode) + SC_MOD()->SetInputMode( SC_INPUT_TABLE ); } void ScFormatShell::GetTextDirectionState( SfxItemSet& rSet ) -- cgit