aTransform.scale( aZoom, aZoom );
double aM11 = aTransform.m11();
double aM22 = aTransform.m22();
+
+
+ QGraphicsView::ViewportAnchor old_anchor = transformationAnchor();
+ setTransformationAnchor( QGraphicsView::AnchorUnderMouse );
+
// increasing of diagonal coefficients (>300) leads to a crash sometimes
// at the values of 100 some primitives are drawn incorrectly
if( qMax( aM11, aM22 ) < 100 )
myIsTransforming = false;
applyTransform();
+
+ setTransformationAnchor( old_anchor );
}
//================================================================