r14439 by fschmid - Xara Importer: fixed incorrect skew calculation for bitmap fills.

scribus-commit scribus-commit at lists.scribus.net
Sun Dec 20 12:50:21 CET 2009


Revision: 14439
Author: fschmid
Date: 2009-12-20T00:07:00.446310Z
Commit message: Xara Importer: fixed incorrect skew calculation for bitmap fills.

Changeset: 
M  /trunk/Scribus/scribus/plugins/import/xar/importxar.cpp

Diffs:
Index: scribus/plugins/import/xar/importxar.cpp
===================================================================
--- scribus/plugins/import/xar/importxar.cpp	(revision 14438)
+++ scribus/plugins/import/xar/importxar.cpp	(revision 14439)
@@ -2106,7 +2106,7 @@
 		gc->patternOffsetX = 0.0;
 		gc->patternOffsetY = 0.0;
 		gc->patternRotation = -rotB;
-		gc->patternSkewX = rotS - 90 - rotB;
+		gc->patternSkewX = tan(M_PI / 180.0 * (rotS - 90 - rotB));
 		gc->patternSkewY = 0.0;
 		if (textData.count() > 0)
 		{
@@ -2220,7 +2220,7 @@
 		gc->patternOffsetX = 0.0;
 		gc->patternOffsetY = 0.0;
 		gc->patternRotation = -rotB;
-		gc->patternSkewX = rotS - 90 - rotB;
+		gc->patternSkewX = tan(M_PI / 180.0 * (rotS - 90 - rotB));
 		gc->patternSkewY = 0.0;
 		if (textData.count() > 0)
 		{




More information about the scribus-commit mailing list