subsurface/mobile-widgets
Lubomir I. Ivanov 56e755b711 Use lrint() for all degrees_t related rounding
In certain places the '(int)' cast is used, while in other the
llrint() or lrint() functions. Make the conversation from degrees
in the 'double' form to the 'int' degrees_t consistent using lrint().

lrint() is the function which should give the best results,
because it accepts a 'double' and results in a 'long'
even if degrees_t is 'int'. If the truncation from 'long' to 'int'
is discarding some of the precision then the next step
would be to turn degrees_t into a 64bit signed integer type.

Possible fix for #625.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-10-09 13:38:58 +03:00
..
qml map-widget: don't crash if the map QML failed to load 2017-10-07 08:09:05 -07:00
qmlmanager.cpp Use lrint() for all degrees_t related rounding 2017-10-09 13:38:58 +03:00
qmlmanager.h Make compile succeed without BT_SUPPORT 2017-10-07 10:06:47 -07:00
qmlmapwidgethelper.cpp Use lrint() for all degrees_t related rounding 2017-10-09 13:38:58 +03:00
qmlmapwidgethelper.h mapwidgethelper: use dynamic creation of the Plugin object 2017-08-24 13:11:39 -07:00
qmlprofile.cpp QML UI: adjust to modified logging API 2017-06-11 13:55:41 -07:00
qmlprofile.h Add SPDX header to mobile widgets and QML files 2017-04-29 13:32:55 -07:00