fix position handling in geoclue2 plugin
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Wed, 10 Nov 2021 19:11:29 +0000 (19:11 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Wed, 10 Nov 2021 19:11:29 +0000 (19:11 +0000)
commit0ab17e26df7231ba5ce278096bd5f20170bd031c
treeeb4374ac06063dfb9e5e220d025c7f8cd9f27d94
parent7e7db0ca39d5d5f971e7af0fb5d82866ec86b5ae
fix position handling in geoclue2 plugin

Origin: upstream, https://code.qt.io/cgit/qt/qtpositioning.git/commit/?id=70b7818e1fc585f8
Last-Update: 2021-11-10

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

Gbp-Pq: Name geoclue2_fix_position_handling.diff
src/plugins/position/geoclue2/qgeopositioninfosource_geoclue2.cpp