subsurface/qt-ui/profile
K. \"pestophagous\" Heller e4c7c6e8eb 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-06 09:37:07 -08:00
..
animationfunctions.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
animationfunctions.h Add a new 'show' Animation, and use it on the close button. 2014-07-30 14:15:09 -07:00
divecartesianaxis.cpp profilewidget2: fix line width when printing on OSX and Linux 2015-10-11 10:32:11 -07:00
divecartesianaxis.h profilewidget2: fix line width when printing on OSX and Linux 2015-10-11 10:32:11 -07:00
diveeventitem.cpp Prevent gaschange tank icons from using garbage coords. 2015-12-06 09:37:07 -08:00
diveeventitem.h Prevent gaschange tank icons from using garbage coords. 2015-12-06 09:37:07 -08:00
divelineitem.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
divelineitem.h Code cleanup: removed bogus animation functions 2014-07-11 17:01:12 -07:00
divepixmapitem.cpp Move DivePictureModel to qt-models 2015-05-29 14:14:27 -07:00
divepixmapitem.h Fix memleak of QGraphicsRectItem 2015-01-17 10:41:07 +13:00
diveprofileitem.cpp Use neutral color for "no SAC information" 2015-10-25 13:00:58 +09:00
diveprofileitem.h Make gradient factor text an independent item on the profile 2015-07-29 10:31:34 -07:00
diverectitem.cpp
diverectitem.h
divetextitem.cpp Update the text if DC changes 2015-08-09 23:55:27 -07:00
divetextitem.h Don't connect to the MainWindow 2015-07-29 12:21:27 -07:00
divetooltipitem.cpp Clean up the header files 2015-01-18 21:25:59 +12:00
divetooltipitem.h Reduce the refresh rate of the toolTipItem to 25fps. 2015-01-17 08:07:14 +13:00
profilewidget2.cpp profilewidget2: fix line width when printing on OSX and Linux 2015-10-11 10:32:11 -07:00
profilewidget2.h profilewidget2: add resetZoom() 2015-10-11 10:31:25 -07:00
ruleritem.cpp Address uninitialized member warnings 2015-06-22 10:57:51 -07:00
ruleritem.h Address uninitialized member warnings 2015-06-22 10:57:51 -07:00
tankitem.cpp Fix extreme sluggish profile over time 2015-01-19 16:25:13 +12:00
tankitem.h Remove unnecessary Q_INTERFACES declaration 2015-10-27 06:15:14 +09:00