[TD] Prevent crash when snapping leader line
This commit is contained in:
@@ -199,6 +199,9 @@ void QGTracker::sleep(bool b)
|
||||
|
||||
QPointF QGTracker::snapToAngle(QPointF dumbPt)
|
||||
{
|
||||
// If no point selected yet, snapping has no sense
|
||||
if (m_points.size() < 1) return dumbPt;
|
||||
|
||||
QPointF result(dumbPt);
|
||||
double angleIncr = M_PI / 8.0; //15*
|
||||
//mirror last clicked point and event point to get sensible coords
|
||||
|
||||
Reference in New Issue
Block a user