Skip to content

Commit

Permalink
Only enable snapping to angle for line and polygon layers
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Feb 8, 2025
1 parent 281b238 commit 75aa8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ ApplicationWindow {
averagedPositionCount: positionSource.averagedPositionCount
overrideLocation: positionLocked ? positionSource.projectedPosition : undefined

snapToCommonAngles: qfieldSettings.snapToCommonAngleIsEnabled
snapToCommonAngles: qfieldSettings.snapToCommonAngleIsEnabled && (dashBoard.activeLayer.geometryType() === Qgis.GeometryType.Polygon || dashBoard.activeLayer.geometryType() === Qgis.GeometryType.Line)
snappingIsRelative: qfieldSettings.snapToCommonAngleIsRelative
snappingAngleDegrees: qfieldSettings.snapToCommonAngleDegrees
snappingTolerance: qfieldSettings.snapToCommonAngleTolerance
Expand Down

1 comment on commit 75aa8e5

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.