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
animationfunctions.h
CMakeLists.txt
divecartesianaxis.cpp
divecartesianaxis.h
diveeventitem.cpp
diveeventitem.h
divelineitem.cpp
divelineitem.h
divepixmapitem.cpp
divepixmapitem.h
diveprofileitem.cpp
diveprofileitem.h
diverectitem.cpp
diverectitem.h
divetextitem.cpp
divetextitem.h
divetooltipitem.cpp
divetooltipitem.h
profilewidget2.cpp Profile: properly initialize plot_info structures 2019-08-28 07:10:09 -07:00
profilewidget2.h
qmlprofile.cpp
qmlprofile.h
ruleritem.cpp Profile: properly initialize plot_info structures 2019-08-28 07:10:09 -07:00
ruleritem.h
tankitem.cpp
tankitem.h