Correcting bug in SimialarityTransform

This commit is contained in:
Ankit Agrawal
2013-09-19 10:23:03 +05:30
parent 8d0f91724f
commit 0ed1e22034
+1 -1
View File
@@ -515,7 +515,7 @@ class SimilarityTransform(ProjectiveTransform):
[math.sin(rotation), math.cos(rotation), 0],
[ 0, 0, 1]
])
self._matrix *= scale
self._matrix[0:2, 0:2] *= scale
self._matrix[0:2, 2] = translation
else:
# default to an identity transform