summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorabdulmajeed ahmed <aalabdulrazzaq@kacst.edu.sa>2013-04-27 12:07:59 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-29 09:29:04 +0000
commit5a8a57703cad29ec2865390f3ced34af0e82b33f (patch)
treeeda26e24d3885c5aadca468aefcc0e326625a47e /sc
parentbc54a6c41d5dc6a36787804f9a7fdb0e9960e0dc (diff)
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 <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/formatsh.cxx10
1 files changed, 9 insertions, 1 deletions
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 )