Skip to content
Permalink
Browse files
Offset curve tool: snap to segment, not to vertex and segment
  • Loading branch information
mhugent committed Feb 24, 2012
1 parent b8e8c16 commit 139821dc1516b09a44999ca6495db2769b5f3beb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsmaptooloffsetcurve.cpp
@@ -423,7 +423,7 @@ QgsGeometry* QgsMapToolOffsetCurve::linestringFromPolygon( QgsGeometry* featureG

void QgsMapToolOffsetCurve::configureSnapper( QgsSnapper& s )
{
//use default vertex snap tolerance to all visible layers, but always to vertex and segment
//use default vertex snap tolerance to all visible layers, but always to segment
QList<QgsSnapper::SnapLayer> snapLayers;
if ( mCanvas )
{
@@ -439,7 +439,7 @@ void QgsMapToolOffsetCurve::configureSnapper( QgsSnapper& s )
QSettings settings;
sl.mTolerance = settings.value( "/qgis/digitizing/search_radius_vertex_edit", 10 ).toDouble();
sl.mUnitType = ( QgsTolerance::UnitType ) settings.value( "/qgis/digitizing/search_radius_vertex_edit_unit", QgsTolerance::Pixels ).toInt();
sl.mSnapTo = QgsSnapper::SnapToVertexAndSegment;
sl.mSnapTo = QgsSnapper::SnapToSegment;
snapLayers.push_back( sl );
}
}

0 comments on commit 139821d

Please sign in to comment.