r15196 by jghali - better resizing with arrow keys

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


Revision: 15196
Author: jghali
Date: 2010-06-15T23:25:38.535588Z
Commit message: better resizing with arrow keys

Changeset: 
M  /branches/Version135/Scribus/scribus/scribus.cpp

Diffs:
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp	(revision 15195)
+++ scribus/scribus.cpp	(revision 15196)
@@ -1595,6 +1595,8 @@
 								view->TransformPoly(10, 0, resizeBy/unitGetRatioFromIndex(doc->unitIndex()));
 							else
 							{
+								int oldRotMode = doc->RotMode;
+								doc->RotMode   = 0; 
 								if (resizingsmaller)
 								{
 									currItem->Sizing = false;
@@ -1607,6 +1609,7 @@
 									currItem->Sizing = false;
 									doc->SizeItem(currItem->width()+resizeBy, currItem->height(), currItem->ItemNr, true);
 								}
+								doc->RotMode = oldRotMode;
  							}
 						}
 						currItem->update();
@@ -1662,6 +1665,8 @@
 								view->TransformPoly(11, 0, resizeBy/unitGetRatioFromIndex(doc->unitIndex()));
 							else
 							{
+								int oldRotMode = doc->RotMode;
+								doc->RotMode   = 0; 
 								if (resizingsmaller)
 								{
 									doc->MoveItem(-resizeBy, 0, currItem, false);
@@ -1674,6 +1679,7 @@
 									currItem->Sizing = false;
 									doc->SizeItem(currItem->width()+resizeBy, currItem->height(), currItem->ItemNr, true);
 								}
+								doc->RotMode = oldRotMode;
 							}
 						}
 						currItem->update();
@@ -1729,6 +1735,8 @@
 								view->TransformPoly(12, 0, resizeBy/unitGetRatioFromIndex(doc->unitIndex()));
 							else
 							{
+								int oldRotMode = doc->RotMode;
+								doc->RotMode   = 0; 
 								if (resizingsmaller)
 								{
 									currItem->Sizing = false;
@@ -1741,6 +1749,7 @@
 									currItem->Sizing = false;
 									doc->SizeItem(currItem->width(), currItem->height()+resizeBy, currItem->ItemNr, true);
 								}
+								doc->RotMode = oldRotMode;
 							}
 						}
 						currItem->update();
@@ -1796,6 +1805,8 @@
 								view->TransformPoly(13, 0, resizeBy/unitGetRatioFromIndex(doc->unitIndex()));
 							else
 							{
+								int oldRotMode = doc->RotMode;
+								doc->RotMode   = 0; 
 								if (resizingsmaller)
 								{
 									doc->MoveItem(0, -resizeBy, currItem, false);
@@ -1808,6 +1819,7 @@
 									currItem->Sizing = false;
 									doc->SizeItem(currItem->width(), currItem->height()+resizeBy, currItem->ItemNr, true);
 								}
+								doc->RotMode = oldRotMode;
 							}
 						}
 						currItem->update();




More information about the scribus-commit mailing list