Skip to content
Permalink
Browse files

Shapes drawing with 3 points are no longer frozen when a left click is

made for the 3rd point.
  • Loading branch information
lbartoletti committed Aug 1, 2017
1 parent 6a1bacf commit 9a9cf3c07db10670e786ecb878e81d389e62f968
Showing with 5 additions and 2 deletions.
  1. +2 −1 src/app/qgsmaptoolcircle3points.cpp
  2. +3 −1 src/app/qgsmaptoolellipsecenter2points.cpp
@@ -36,7 +36,8 @@ void QgsMapToolCircle3Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e )

if ( e->button() == Qt::LeftButton )
{
mPoints.append( mapPoint );
if ( mPoints.size() < 2 )
mPoints.append( mapPoint );

if ( !mPoints.isEmpty() )
{
@@ -36,7 +36,9 @@ void QgsMapToolEllipseCenter2Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e

if ( e->button() == Qt::LeftButton )
{
mPoints.append( mapPoint );

if ( mPoints.size() < 2 )
mPoints.append( mapPoint );

if ( !mPoints.isEmpty() )
{

0 comments on commit 9a9cf3c

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