Navigation Menu

Skip to content

Commit

Permalink
Remove unrequired call to repaint map
Browse files Browse the repository at this point in the history
The addFeature() call before returns immeditely, so there isn't even
something around to justify a repaint.
  • Loading branch information
m-kuhn committed Oct 25, 2017
1 parent dbd2cc9 commit 7dbae64
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/qgsmaptooladdfeature.cpp
Expand Up @@ -179,8 +179,6 @@ void QgsMapToolAddFeature::cadCanvasReleaseEvent( QgsMapMouseEvent *e )

addFeature( vlayer, &f, false );

vlayer->triggerRepaint();

// we are done with digitizing for now so instruct advanced digitizing dock to reset its CAD points
cadDockWidget()->clearPoints();
}
Expand Down

2 comments on commit 7dbae64

@nirvn
Copy link
Contributor

@nirvn nirvn commented on 7dbae64 Nov 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@m-kuhn , this needs to be reverted as it caused the following regression: https://issues.qgis.org/issues/17426

@nirvn
Copy link
Contributor

@nirvn nirvn commented on 7dbae64 Nov 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better fix coming, ignore.

Please sign in to comment.