Skip to content

Commit

Permalink
Fixes crash in map tool
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Feb 16, 2018
1 parent 4e72917 commit 5d921cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircle2tangentspoint.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 5d921cc

Please sign in to comment.