mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
profile: when clearing the profile, also reset the profile data
When hovering over the chart after the chart was cleared, there were artifacts owing to the stale profile data. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
789eb2c620
commit
ecd3334a1c
1 changed files with 1 additions and 0 deletions
|
@ -197,6 +197,7 @@ void ProfileScene::clear()
|
|||
// the DiveEventItems
|
||||
qDeleteAll(eventItems);
|
||||
eventItems.clear();
|
||||
free_plot_info_data(&plotInfo);
|
||||
}
|
||||
|
||||
static bool ppGraphsEnabled(const struct divecomputer *dc, bool simplified)
|
||||
|
|
Loading…
Reference in a new issue