r23363 by jghali - Preserve rotation center when using keys in autorepeat mode with rotation tool
scribus-commit
scribus-commit at lists.scribus.net
Thu Nov 14 13:04:16 UTC 2019
Author: jghali
Date: Thu Nov 14 13:04:16 2019
New Revision: 23363
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23363
Log:
Preserve rotation center when using keys in autorepeat mode with rotation tool
Modified:
trunk/Scribus/scribus/canvasmode_rotate.cpp
Modified: trunk/Scribus/scribus/canvasmode_rotate.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23363&path=/trunk/Scribus/scribus/canvasmode_rotate.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_rotate.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_rotate.cpp Thu Nov 14 13:04:16 2019
@@ -512,7 +512,10 @@
m_doc->setRotationMode(m_rotMode);
m_view->RCenter = m_rotCenter;
}
- m_doc->itemSelection_Rotate(m_doc->m_Selection->isMultipleSelection() ? increment : (currItem->rotation() + increment));
+ if (m_doc->m_Selection->isMultipleSelection())
+ m_doc->rotateGroup(increment, m_view->RCenter);
+ else
+ m_doc->itemSelection_Rotate(currItem->rotation() + increment);
m_canvas->setRenderModeUseBuffer(false);
if (m_doc->m_Selection->isMultipleSelection())
{
More information about the scribus-commit
mailing list