Skip to content
Permalink
Browse files
[snapping] fix default advanced mode values for added layers (#3513)
  • Loading branch information
nirvn authored and wonder-sk committed Sep 21, 2016
1 parent cbff8f4 commit e863c6fa65b844a40d58240874ea345f69ce6d0f
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/qgssnappingdialog.cpp
  2. +1 −1 src/core/qgstolerance.h
@@ -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" )
@@ -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 */

0 comments on commit e863c6f

Please sign in to comment.