Skip to content

Commit 9a30aa2

Browse files
committed
Add check if position is simulated by hardware
1 parent b025efc commit 9a30aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vcpkg/ports/qtpositioning/ios_orthometric_altitude.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ index 95d51a86..bdb8641b 100644
2929
+ location.setAttribute(QGeoPositionInfo::VerticalSpeed, 1);
3030
+ }
3131
+
32-
+ if (newLocation.sourceInformation.isSimulatedBySoftware) {
32+
+ if (newLocation.sourceInformation.isSimulatedBySoftware || newLocation.sourceInformation.isProducedByAccessory) {
3333
+ location.setAttribute(QGeoPositionInfo::MagneticVariation, 1);
3434
+ }
3535
+

0 commit comments

Comments
 (0)