r14382 by fschmid - Fixed incorrect skew calculation.

scribus-commit scribus-commit at lists.scribus.net
Sun Dec 6 18:20:42 CET 2009


Revision: 14382
Author: fschmid
Date: 2009-12-06T06:56:10.848125Z
Commit message: Fixed incorrect skew calculation.

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

Diffs:
Index: scribus/scpainter.cpp
===================================================================
--- scribus/scpainter.cpp	(revision 14381)
+++ scribus/scpainter.cpp	(revision 14382)
@@ -916,7 +916,7 @@
 		gradientSkew = 0;
 	else if (skew == 270)
 		gradientSkew = -1;
-	else if (skew == 390)
+	else if (skew == 360)
 		gradientSkew = 0;
 	else
 		gradientSkew = tan(M_PI / 180.0 * skew);
@@ -940,7 +940,7 @@
 		mask_gradientSkew = 0;
 	else if (skew == 270)
 		mask_gradientSkew = -1;
-	else if (skew == 390)
+	else if (skew == 360)
 		mask_gradientSkew = 0;
 	else
 		mask_gradientSkew = tan(M_PI / 180.0 * skew);




More information about the scribus-commit mailing list