subsurface/desktop-widgets
Berthold Stoeger 17556cc66c profile: don't interpret NULL as current_dive in plotDive()
ProfileWidget2::plotDive() had this weird interface, where passing
in NULL as dive would mean "show current_dive". However, most callers
would already pass in current_dive. Therefore, unify and always pass
in current_dive if the caller wants to draw the current dive.

This allows us to interpret NULL as "show empty profile". Thus,
passing in current_dive when there is no current_dive simply shows
an empty profile. This makes the calling code in
MainWindow::selectionChanged() simpler.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-05-03 14:47:49 -07:00
..
2015-10-30 10:36:49 -07:00
2020-03-22 12:01:59 -07:00
2017-04-29 13:32:55 -07:00
2017-11-30 23:14:46 -08:00
2020-04-19 14:27:54 -07:00
2020-01-24 09:51:02 -08:00
2020-03-19 08:37:59 -07:00
2020-04-19 14:27:54 -07:00
2020-04-19 14:27:54 -07:00
2015-10-30 10:36:49 -07:00
2017-11-30 23:14:46 -08:00
2017-11-30 23:14:46 -08:00
2017-11-30 23:14:46 -08:00
2017-11-30 23:14:46 -08:00
2015-10-30 10:36:49 -07:00
2017-11-30 23:14:46 -08:00