Fixed additional problem with resizing transformed objects.

This commit is contained in:
Jim Evins
2015-09-07 14:55:02 -04:00
parent ab01dbd525
commit 360d85bbbc
+1 -2
View File
@@ -846,9 +846,8 @@ glabels::View::handleResizeMotion( double xWorld, double yWorld )
/*
* Put new origin back into world coordinates and set.
*/
QMatrix inverseMatrix = mResizeObject->matrix().inverted();
QPointF p0( x0, y0 );
p0 = inverseMatrix.map( p0 );
p0 = mResizeObject->matrix().map( p0 );
p0 += QPointF( mResizeObject->x0(), mResizeObject->y0() );
mResizeObject->setPosition( p0.x(), p0.y() );
}