Skip to content

Commit

Permalink
Further tweak selection threshold, fix crasher
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Nov 2, 2023
1 parent 5c1d2c4 commit 848727f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/core/vertexmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ void VertexModel::selectVertexAtPosition( const QgsPoint &mapPoint, double thres
}
else
{
setEditingMode( EditVertex );
setCurrentVertex( closestRow );
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/qml/geometryeditors/VertexEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ VisibilityFadingRow {
{
if (type === "stylus") {
if ( featureModel.vertexModel.currentVertexIndex == -1 )
featureModel.vertexModel.selectVertexAtPosition(point, 10)
featureModel.vertexModel.selectVertexAtPosition(point, 14)
else
{
digitizingLogger.addCoordinate(featureModel.vertexModel.currentPoint)
featureModel.vertexModel.currentVertexIndex = -1
vertexEditorToolbar.currentVertexModified = false
}
} else {
featureModel.vertexModel.selectVertexAtPosition(point, 10, false)
featureModel.vertexModel.selectVertexAtPosition(point, 14, false)
}

return true // handled
return true
}

QfToolButton {
Expand Down

0 comments on commit 848727f

Please sign in to comment.