mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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> |
||
|---|---|---|
| .. | ||
| qml | ||
| qmlmanager.cpp | ||
| qmlmanager.h | ||
| qmlmapwidgethelper.cpp | ||
| qmlmapwidgethelper.h | ||
| qmlprofile.cpp | ||
| qmlprofile.h | ||