Skip to content

Commit

Permalink
Shapes drawing with 3 points are no longer frozen when a left click is
Browse files Browse the repository at this point in the history
made for the 3rd point.
  • Loading branch information
lbartoletti committed Aug 1, 2017
1 parent 6a1bacf commit 9a9cf3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/qgsmaptoolcircle3points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
{
Expand Down
4 changes: 3 additions & 1 deletion src/app/qgsmaptoolellipsecenter2points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
{
Expand Down

0 comments on commit 9a9cf3c

Please sign in to comment.