Skip to content
Permalink
Browse files

Fixes crash in map tool

  • Loading branch information
pblottiere committed Feb 16, 2018
1 parent 4e72917 commit 5d921cc9b2136d434650345bceda9e0515f6a478
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsmaptoolcircle2tangentspoint.cpp
@@ -131,7 +131,7 @@ void QgsMapToolCircle2TangentsPoint::cadCanvasMoveEvent( QgsMapMouseEvent *e )
}
}

if ( mPoints.size() == 4 )
if ( mPoints.size() == 4 && !mCenters.isEmpty() )
{
QgsPoint center = QgsPoint( mCenters.at( 0 ) );
const double currentDist = mapPoint.distanceSquared( center );

0 comments on commit 5d921cc

Please sign in to comment.
You can’t perform that action at this time.