Fixed shrink(-overflow) for rotated fields

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@871 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-05-19 17:47:02 +00:00
parent fd101f0b94
commit 9f8b35bfed
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -135,9 +135,9 @@ wxRegion Rotation::trRectToRegion(const RealRect& r) const {
RealPoint Rotation::trInv(const RealPoint& p) const {
double a = deg_to_rad(angle), s = sin(a), c = cos(a);
double x = (p.x - origin.x) / zoomX, y = (p.y - origin.y) / zoomY;
return RealPoint(c * x - s * y,
s * x + c * y);
double x = p.x - origin.x, y = p.y - origin.y;
return RealPoint((c * x - s * y) / zoomX,
(s * x + c * y) / zoomY);
}
RealPoint Rotation::boundingBoxCorner(const RealSize& size) const {