Skip to content

Commit

Permalink
[snapping] fix default advanced mode values for added layers (#3513)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and wonder-sk committed Sep 21, 2016
1 parent cbff8f4 commit e863c6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/qgssnappingdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void QgsSnappingDialog::addLayer( QgsMapLayer *theMapLayer )
bool myDockFlag = myQsettings.value( "/qgis/dockSnapping", false ).toBool();
double defaultSnappingTolerance = myQsettings.value( "/qgis/digitizing/default_snapping_tolerance", 0 ).toDouble();
int defaultSnappingUnit = myQsettings.value( "/qgis/digitizing/default_snapping_tolerance_unit", QgsTolerance::ProjectUnits ).toInt();
QString defaultSnappingString = myQsettings.value( "/qgis/digitizing/default_snap_mode", "to vertex" ).toString();
QString defaultSnappingString = myQsettings.value( "/qgis/digitizing/default_snap_mode", "off" ).toString();

int defaultSnappingStringIdx = 0;
if ( defaultSnappingString == "to vertex" )
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgstolerance.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CORE_EXPORT QgsTolerance
enum UnitType
{
/** Layer unit value */
LayerUnits = 1,
LayerUnits,
/** Pixels unit of tolerance*/
Pixels,
/** Map (project) units. Added in 2.8 */
Expand Down

0 comments on commit e863c6f

Please sign in to comment.