Skip to content

Commit 332e1d4

Browse files
committedJul 14, 2016
[Geometry snapper] Trigger repaint instead of explicit refresh
1 parent 087ec08 commit 332e1d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/plugins/geometry_snapper/qgsgeometrysnapperdialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ void QgsGeometrySnapperDialog::run()
306306

307307
layer->setReadOnly( false );
308308

309-
/** Refresh canvas **/
310-
mIface->mapCanvas()->refresh();
309+
/** Trigger layer repaint **/
310+
layer->triggerRepaint();
311311

312312
/** Show errors **/
313313
if ( !snapper.getErrors().isEmpty() )

0 commit comments

Comments
 (0)
Please sign in to comment.