subsurface/profile-widget
Dirk Hohndel 9dd26a00e8 Profile: avoid potential crash
If things go as planned, then the length of the polygon is the same as the
number of rows in the model. Turns out when running Subsurface-mobile on
Android that simple truth doesn't seem to be correct. Most of the time
the polygon seems to have twice as many elements as the model. But a few
times I ended up in here with a polygon that had fewer elements than the
model. And then things crash.

This simply avoids the crash.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-01 15:20:32 -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 Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07:00
diveeventitem.h Move Profile widget out of desktop-widgets 2015-10-30 10:36:49 -07: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 Profile: avoid potential crash 2015-12-01 15:20:32 -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 Drag and Drop Images 2015-11-24 09:22:16 -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