From e781b8252d3262b44129a8aabe411a4e3c00d2c3 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 4 Dec 2015 22:21:07 +0200 Subject: [PATCH] Cut less scene rect size for showing axis. --HG-- branch : develop --- src/libs/vtools/visualization/visline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vtools/visualization/visline.cpp b/src/libs/vtools/visualization/visline.cpp index 86bd79cd2..a98f60b6c 100644 --- a/src/libs/vtools/visualization/visline.cpp +++ b/src/libs/vtools/visualization/visline.cpp @@ -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());