Navigation Menu

Skip to content

Commit

Permalink
Offset curve tool: snap to segment, not to vertex and segment
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Feb 24, 2012
1 parent b8e8c16 commit 139821d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmaptooloffsetcurve.cpp
Expand Up @@ -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 )
{
Expand All @@ -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 );
}
}
Expand Down

0 comments on commit 139821d

Please sign in to comment.