From ca61b27599f0d328a3bfd4eec8d870791bef1ebe Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 9 Oct 2013 21:24:53 +0300 Subject: [PATCH] Fixed bug with bisector. --HG-- branch : develop --- tools/drawTools/vtoolbisector.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/drawTools/vtoolbisector.cpp b/tools/drawTools/vtoolbisector.cpp index 80ee7453d..98c84c867 100644 --- a/tools/drawTools/vtoolbisector.cpp +++ b/tools/drawTools/vtoolbisector.cpp @@ -42,8 +42,10 @@ QPointF VToolBisector::FindPoint(const QPointF &firstPoint, const QPointF &secon qreal angle = line1.angleTo(line2); if(angle>180){ angle = 360 - angle; + line1.setAngle(line1.angle()-angle/2); + } else { + line1.setAngle(line1.angle()+angle/2); } - line1.setAngle(line1.angle()-angle/2); line1.setLength(length); return line1.p2(); }