Skip to content
Permalink
Browse files
Fixes crash in map tool
  • Loading branch information
pblottiere committed Feb 16, 2018
1 parent 4e72917 commit 5d921cc
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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.