subsurface/profile-widget
K. \"pestophagous\" Heller 2778470b97 Prevent gaschange tank icons from using garbage coords.
Tank icons were shown at incorrect spots on the profile
when the DiveEventItem object held a pointer to a struct
event even after the struct event at that address had
been freed.  When internalEvent is a pointer to freed
memory, internalEvent->time.seconds could have all kinds
of crazy values, which get used in member function
DiveEventItem::recalculatePos to place the tank at bad
x coordinates.

The DiveEventItem(s) no longer store a pointer to memory
that they do not own.  This way, no matter how the path of
execution arrives into slot recalculatePos, we never need
fear that the DiveEventItem will dereference a garbage
pointer to a struct event.

Fixes #968

Signed-off-by: K. Heller <pestophagous@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-03 22:56:23 -08:00
..
animationfunctions.cpp Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
animationfunctions.h Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
CMakeLists.txt Profile: add define when building subsurface-mobile 2015-11-05 16:05:19 -08:00
divecartesianaxis.cpp Don't connect to the PreferencesDialog in Subsurface-mobile 2015-11-06 10:20:18 -08:00
divecartesianaxis.h Untagle DiveCartesianAxis from MainWindow 2015-11-06 09:58:08 -08:00
diveeventitem.cpp Prevent gaschange tank icons from using garbage coords. 2015-12-03 22:56:23 -08:00
diveeventitem.h Prevent gaschange tank icons from using garbage coords. 2015-12-03 22:56:23 -08:00
divelineitem.cpp Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
divelineitem.h Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
divepixmapitem.cpp Don't connect to the PreferencesDialog in Subsurface-mobile 2015-11-06 10:20:18 -08:00
divepixmapitem.h Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
diveprofileitem.cpp QML-UI: turn of some profile features 2015-12-01 15:37:28 -08:00
diveprofileitem.h Untangle DiveCalculatedCeiling from MainWindow 2015-11-06 09:58:34 -08:00
diverectitem.cpp Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
diverectitem.h Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
divetextitem.cpp Profile: include Qt headers directly 2015-11-05 17:05:30 -08:00
divetextitem.h Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
divetooltipitem.cpp divetooltipitem.cpp: prettify the tooltip bounds and padding 2015-11-10 09:08:57 -08:00
divetooltipitem.h Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
profilewidget2.cpp QML-UI: turn of some profile features 2015-12-01 15:37:28 -08:00
profilewidget2.h Drag and Drop Images 2015-11-24 09:22:16 -08:00
ruleritem.cpp Don't connect to the PreferencesDialog in Subsurface-mobile 2015-11-06 10:20:18 -08:00
ruleritem.h Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
tankitem.cpp Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
tankitem.h Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00