r15195 by jghali - better resizing with arrow keys

scribus-commit scribus-commit at lists.scribus.net
Wed Jun 16 01:30:57 CEST 2010


Revision: 15195
Author: jghali
Date: 2010-06-15T23:24:25.807999Z
Commit message: better resizing with arrow keys

Changeset: 
M  /trunk/Scribus/scribus/canvasmode.cpp

Diffs:
Index: scribus/canvasmode.cpp
===================================================================
--- scribus/canvasmode.cpp	(revision 15194)
+++ scribus/canvasmode.cpp	(revision 15195)
@@ -1000,6 +1000,8 @@
 							m_view->TransformPoly(10, 0, resizeBy/unitGetRatioFromIndex(m_doc->unitIndex()));
 						else
 						{
+							int oldRotMode = m_doc->RotMode();
+							m_doc->RotMode(0);
 							if (resizingsmaller)
 							{
 								currItem->Sizing = false;
@@ -1012,6 +1014,7 @@
 								currItem->Sizing = false;
 								m_doc->SizeItem(currItem->width()+resizeBy, currItem->height(), currItem->ItemNr, true);
 							}
+							m_doc->RotMode(oldRotMode);
 						}
 					}
 					currItem->update();
@@ -1067,6 +1070,8 @@
 							m_view->TransformPoly(11, 0, resizeBy/unitGetRatioFromIndex(m_doc->unitIndex()));
 						else
 						{
+							int oldRotMode = m_doc->RotMode();
+							m_doc->RotMode(0);
 							if (resizingsmaller)
 							{
 								m_doc->MoveItem(-resizeBy, 0, currItem, false);
@@ -1078,7 +1083,8 @@
 							{
 								currItem->Sizing = false;
 								m_doc->SizeItem(currItem->width()+resizeBy, currItem->height(), currItem->ItemNr, true);
-							}
+							}
+							m_doc->RotMode(oldRotMode);
 						}
 					}
 					currItem->update();
@@ -1134,6 +1140,8 @@
 							m_view->TransformPoly(12, 0, resizeBy/unitGetRatioFromIndex(m_doc->unitIndex()));
 						else
 						{
+							int oldRotMode = m_doc->RotMode();
+							m_doc->RotMode(0);
 							if (resizingsmaller)
 							{
 								currItem->Sizing = false;
@@ -1145,7 +1153,8 @@
 								currItem->moveImageXYOffsetBy(0, resizeBy/currItem->imageYScale());
 								currItem->Sizing = false;
 								m_doc->SizeItem(currItem->width(), currItem->height()+resizeBy, currItem->ItemNr, true);
-							}
+							}
+							m_doc->RotMode(oldRotMode);
 						}
 					}
 					currItem->update();
@@ -1201,6 +1210,8 @@
 							m_view->TransformPoly(13, 0, resizeBy/unitGetRatioFromIndex(m_doc->unitIndex()));
 						else
 						{
+							int oldRotMode = m_doc->RotMode();
+							m_doc->RotMode(0);
 							if (resizingsmaller)
 							{
 								m_doc->MoveItem(0, -resizeBy, currItem, false);
@@ -1212,7 +1223,8 @@
 							{
 								currItem->Sizing = false;
 								m_doc->SizeItem(currItem->width(), currItem->height()+resizeBy, currItem->ItemNr, true);
-							}
+							}
+							m_doc->RotMode(oldRotMode);
 						}
 					}
 					currItem->update();




More information about the scribus-commit mailing list