Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix snapping default unit set to pixels is not respected
  • Loading branch information
nyalldawson committed Jan 30, 2018
1 parent eb42afe commit 382ccfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgssnappingconfig.cpp
Expand Up @@ -135,7 +135,7 @@ void QgsSnappingConfig::reset()
mType = type;
mTolerance = tolerance;
// do not allow unit to be "layer" if not in advanced configuration
if ( mMode != AdvancedConfiguration )
if ( mUnits == QgsTolerance::LayerUnits && mMode != AdvancedConfiguration )
{
mUnits = QgsTolerance::ProjectUnits;
}
Expand Down

0 comments on commit 382ccfe

Please sign in to comment.