From c628a26cd3f763b39a2e2441fc766dabf04ed492 Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Wed, 5 Feb 2025 13:59:04 +0100 Subject: tdf#90293 switch draw selection to rotate mode Clicking a draw object(selection) switches to rotate mode and back in Calc/Writer like it is done in Draw/Impress already. By default this function is off an can be activated in via toolbar Drawing Change-Id: I4a11d008e7df97c5278cae987d5c47fa50cddf14 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181169 Tested-by: Gabor Kelemen Tested-by: Jenkins Reviewed-by: Gabor Kelemen --- sw/source/uibase/shells/drawsh.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'sw/source/uibase/shells/drawsh.cxx') diff --git a/sw/source/uibase/shells/drawsh.cxx b/sw/source/uibase/shells/drawsh.cxx index fa9e71964a5a..b06e0602c389 100644 --- a/sw/source/uibase/shells/drawsh.cxx +++ b/sw/source/uibase/shells/drawsh.cxx @@ -188,15 +188,7 @@ void SwDrawShell::Execute(SfxRequest &rReq) switch (nSlotId) { case SID_OBJECT_ROTATE: - if (rSh.GetSelectedObjCount() && pSdrView->IsRotateAllowed()) - { - if (GetView().IsDrawRotate()) - rSh.SetDragMode(SdrDragMode::Move); - else - rSh.SetDragMode(SdrDragMode::Rotate); - - GetView().FlipDrawRotate(); - } + GetView().ToggleRotate(); break; case SID_MOVE_SHAPE_HANDLE: { -- cgit