Skip to content
Permalink
Browse files

Allow disabling snap to grid

  • Loading branch information
m-kuhn committed Aug 26, 2018
1 parent b68ce37 commit c2f6882a5c2eac542e7d16cb7f08808ebf62e12e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/qgsmaptooladvanceddigitizing.cpp
@@ -150,9 +150,10 @@ bool QgsMapToolAdvancedDigitizing::snapToGridEnabled() const

void QgsMapToolAdvancedDigitizing::setSnapToGridEnabled( bool snapToGridEnabled )
{
mSnapToGridEnabled = snapToGridEnabled;

if ( mSnapToGridCanvasItem )
{
mSnapToGridEnabled = snapToGridEnabled;
mSnapToGridCanvasItem->setEnabled( snapToGridEnabled );
}
}

0 comments on commit c2f6882

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