[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : builder1
Repository : xara
Revision   : 1311
Date       : Tue Jun 13 14:38:48 BST 2006

Changed paths:
   M /Trunk/XaraLX/Kernel/epsfiltr.cpp

Persuade rotate code to work by splitting creation


Diff:
Index: Trunk/XaraLX/Kernel/epsfiltr.cpp
===================================================================
--- Trunk/XaraLX/Kernel/epsfiltr.cpp	(revision 1310)
+++ Trunk/XaraLX/Kernel/epsfiltr.cpp	(revision 1311)
@@ -6052,7 +6052,8 @@
 			double RotAngle = atan2((double)RenderMajor.y-Centre.y,(double)RenderMajor.x-Centre.x) - (PI/2);
 			//double SkewAngle= atan2(pQuickShape->GetUTMinorAxes().y,pQuickShape->GetUTMinorAxes().x) - (PI/2);
 
-			Trans2DMatrix TransMat(Matrix(ANGLE(RotAngle*(180/PI))));
+			Matrix	mat( ANGLE( RotAngle * ( 180 / PI ) ) );
+			Trans2DMatrix TransMat( mat );
 			TransMat *= Trans2DMatrix(Centre.x,Centre.y);
 			pQuickShape->Transform(TransMat);
 		}
@@ -6108,7 +6109,8 @@
 			double RotAngle = atan2((double)RenderMajor.y-Centre.y,(double)RenderMajor.x-Centre.x) - (PI/2);
 			//double SkewAngle= atan2(pQuickShape->GetUTMinorAxes().y,pQuickShape->GetUTMinorAxes().x) - (PI/2);
 
-			Trans2DMatrix TransMat(Matrix(ANGLE(RotAngle*(180/PI))));
+			Matrix mat( ANGLE( RotAngle * ( 180 / PI ) ) );
+			Trans2DMatrix TransMat( mat );
 			TransMat *= Trans2DMatrix(Centre.x,Centre.y);
 			pQuickShape->Transform(TransMat);
 		}


Xara