sw/source/uibase/uiview/viewdraw.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit d4bde4c979df6589fca2b405111e1b17fcff9ca7
Author:     Oliver Specht <oliver.spe...@cib.de>
AuthorDate: Thu Mar 6 16:19:55 2025 +0100
Commit:     Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
CommitDate: Thu Mar 13 13:12:29 2025 +0100

    tdf#90293 switch on rotation of shapes
    
    Adds Writer images not handled by c628a26cd3f763b39a2e2441fc766dabf04ed492
    
    Change-Id: Icaf046df0eef9cf3722a00bb1d7761c849f03734
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182592
    Tested-by: Jenkins
    Tested-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
    Reviewed-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>

diff --git a/sw/source/uibase/uiview/viewdraw.cxx 
b/sw/source/uibase/uiview/viewdraw.cxx
index 99c68eb0c132..a00333cc4ca6 100644
--- a/sw/source/uibase/uiview/viewdraw.cxx
+++ b/sw/source/uibase/uiview/viewdraw.cxx
@@ -450,8 +450,10 @@ void SwView::NoRotate()
 
 void SwView::ToggleRotate()
 {
-    if (m_pWrtShell->GetSelectedObjCount() &&
-        m_pWrtShell->GetDrawView()->IsRotateAllowed())
+    if ((m_pWrtShell->GetSelectedObjCount() &&
+        m_pWrtShell->GetDrawView()->IsRotateAllowed()) ||
+          (m_pWrtShell->IsRotationOfSwGrfNodePossible() &&
+              m_pWrtShell->GetDrawViewWithValidMarkList()->IsRotateAllowed()))
     {
         if (IsDrawRotate())
             m_pWrtShell->SetDragMode(SdrDragMode::Move);

Reply via email to