Cut less scene rect size for showing axis.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-12-04 22:21:07 +02:00
parent 6de8a44314
commit e781b8252d

View File

@ -88,10 +88,10 @@ QPointF VisLine::Ray(const QPointF &firstPoint, const qreal &angle) const
//Limit size of the scene rect. Axis that has same size as scene rect cause scene size growth.
QLineF line1 = QLineF(scRect.topLeft(), scRect.bottomRight());
line1.setLength(20);
line1.setLength(2);
QLineF line2 = QLineF(scRect.bottomRight(), scRect.topLeft());
line2.setLength(20);
line2.setLength(2);
scRect = QRectF(line1.p2(), line2.p2());