subsurface/profile-widget
Jeremie Guichard 597539ce39 Fix double to int truncation in C++ code
Wfloat-conversion enabled for C++ part of the code
Fix warnings raised by the flag using lrint

Original issue reported on the mailing list:
The ascent/descent rates are sometimes not what is expected.
E.g. setting the ascent rate to 10m/min results in an actual
ascent rate of 9m/min.
This is due to truncating the ascent rate preference,
then effectively rounding up the time to reach each stop to 2s intervals.
The result being that setting the ascent rate to 10m/min
results in 20s to ascend 3m (9m/min), when it should be exactly 18s.

Reported-by: John Smith <noseygit@hotmail.com>
Reported-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
2017-03-24 09:39:25 -07:00
..
animationfunctions.cpp Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
animationfunctions.h
CMakeLists.txt Correctly handle SubsurfaceMobile 2016-01-08 08:04:24 -08:00
divecartesianaxis.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
divecartesianaxis.h Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
diveeventitem.cpp We use 'setpoint' in UI. Use it also for documentation and comments. No semantic change. 2017-03-11 08:09:07 -08:00
diveeventitem.h Prevent gaschange tank icons from using garbage coords. 2015-12-03 22:56:23 -08:00
divelineitem.cpp
divelineitem.h
divepixmapitem.cpp Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
divepixmapitem.h
diveprofileitem.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
diveprofileitem.h Heatmap: Color undersaturated values relative to inert gas pressure 2016-10-20 21:14:19 -07:00
diverectitem.cpp
diverectitem.h
divetextitem.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
divetextitem.h
divetooltipitem.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
divetooltipitem.h Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
profilewidget2.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
profilewidget2.h Now that we are building with C++11 we need override keyword 2016-06-23 16:43:05 -07:00
ruleritem.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
ruleritem.h Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
tankitem.cpp MOBILE: Reposition objects in the profile 2017-02-05 11:59:47 -08:00
tankitem.h Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00