[neon/qt/qtlocation/Neon/release] debian/patches: remove patch now in git
Jonathan Esk-Riddell
null at kde.org
Mon Jan 9 13:48:25 GMT 2023
Git commit 23a64dbf8a30c7f57abe8c3567dff9d9135e469d by Jonathan Esk-Riddell.
Committed on 09/01/2023 at 13:48.
Pushed by jriddell into branch 'Neon/release'.
remove patch now in git
D +0 -36 debian/patches/geoclue2_fix_position_handling.diff
M +0 -1 debian/patches/series
https://invent.kde.org/neon/qt/qtlocation/commit/23a64dbf8a30c7f57abe8c3567dff9d9135e469d
diff --git a/debian/patches/geoclue2_fix_position_handling.diff b/debian/patches/geoclue2_fix_position_handling.diff
deleted file mode 100644
index 83a9879..0000000
--- a/debian/patches/geoclue2_fix_position_handling.diff
+++ /dev/null
@@ -1,36 +0,0 @@
-Description: fix position handling in geoclue2 plugin
- The pre-existing code was incorrect due to the operation priority.
- The result of the comparison was assigned to the variables, so they
- were always initialized with 0 or 1 instead of real values.
- .
- Also use std::numeric_limits<double>::lowest(), because the altitude
- can have a negative value (when we are below sea level).
-Origin: upstream, https://code.qt.io/cgit/qt/qtpositioning.git/commit/?id=70b7818e1fc585f8
-Last-Update: 2021-11-10
-
---- a/src/plugins/position/geoclue2/qgeopositioninfosource_geoclue2.cpp
-+++ b/src/plugins/position/geoclue2/qgeopositioninfosource_geoclue2.cpp
-@@ -410,7 +410,8 @@ void QGeoPositionInfoSourceGeoclue2::han
- } else {
- QGeoCoordinate coordinate(location.latitude(),
- location.longitude());
-- if (const auto altitude = location.altitude() > std::numeric_limits<double>::min())
-+ const auto altitude = location.altitude();
-+ if (altitude > std::numeric_limits<double>::lowest())
- coordinate.setAltitude(altitude);
-
- const Timestamp ts = location.timestamp();
-@@ -428,9 +429,11 @@ void QGeoPositionInfoSourceGeoclue2::han
- m_lastPositionFromSatellite = qFuzzyCompare(accuracy, 0.0);
-
- m_lastPosition.setAttribute(QGeoPositionInfo::HorizontalAccuracy, accuracy);
-- if (const auto speed = location.speed() >= 0.0)
-+ const auto speed = location.speed();
-+ if (speed >= 0.0)
- m_lastPosition.setAttribute(QGeoPositionInfo::GroundSpeed, speed);
-- if (const auto heading = location.heading() >= 0.0)
-+ const auto heading = location.heading();
-+ if (heading >= 0.0)
- m_lastPosition.setAttribute(QGeoPositionInfo::Direction, heading);
-
- emit positionUpdated(m_lastPosition);
diff --git a/debian/patches/series b/debian/patches/series
index 280cc0d..a06bcf0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,5 +1,4 @@
#use_system_dependencies.diff
hurd_geoclue.diff
#mapboxgl_thread_portability.diff
-geoclue2_fix_position_handling.diff
#opengl.diff
More information about the Neon-commits
mailing list