Skip to content

Commit

Permalink
Fix wrong parameter type warning on app launch
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 4, 2023
1 parent 118c29a commit 1ac2c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qml/CoordinateLocator.qml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Item {
? overrideLocation
: snappingUtils.snappedCoordinate;

return mapSettings.coordinateToScreen(coordinate);
return coordinate !== undefined ? mapSettings.coordinateToScreen(coordinate) : Qt.point();
}

property variant rubberbandModel: undefined
Expand Down

1 comment on commit 1ac2c2d

@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.