subsurface/profile-widget
Berthold Stoeger 25b30da244 Profile: properly initialize plot_info structures
The create_plot_info_new() function releases old plot data. This
can only work if the plot_info structure was initialized previously.
The ProfileWidget2 did that by a memset, but other parts of the code
did not.

Therefore, introduce a init_plot_info() function and call that when
generating a plot_info struct. Constructors would make this so much
easier - but since this is called from C, we can't use them.

Fixes #2251

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-08-28 07:10:09 -07:00
..
animationfunctions.cpp Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
animationfunctions.h Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
CMakeLists.txt
divecartesianaxis.cpp Fix math in valueAt 2019-08-08 08:56:44 -07:00
divecartesianaxis.h
diveeventitem.cpp Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
diveeventitem.h Profile: take int instead of bool in DiveEventItem::recalculatePos 2019-07-12 09:59:28 +02:00
divelineitem.cpp
divelineitem.h
divepixmapitem.cpp Profile: add speed parameter to Animation::* functions 2019-07-12 09:59:28 +02:00
divepixmapitem.h
diveprofileitem.cpp Indicate negative cylider pressure 2019-08-08 08:56:44 -07:00
diveprofileitem.h
diverectitem.cpp
diverectitem.h
divetextitem.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
divetextitem.h
divetooltipitem.cpp get rid of some foreach and Q_FOREACH constructs 2019-04-12 12:59:17 +03:00
divetooltipitem.h
profilewidget2.cpp Profile: properly initialize plot_info structures 2019-08-28 07:10:09 -07:00
profilewidget2.h Profile: stop animations on export 2019-07-12 09:59:28 +02:00
qmlprofile.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
qmlprofile.h
ruleritem.cpp Profile: properly initialize plot_info structures 2019-08-28 07:10:09 -07:00
ruleritem.h
tankitem.cpp Cleanup: remove TankItem::diveCylinderStore 2019-07-27 11:45:17 -07:00
tankitem.h Cleanup: remove TankItem::diveCylinderStore 2019-07-27 11:45:17 -07:00