From d520ac22864fed77f44de9461c3bb5302b22e30f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 12 Apr 2020 12:20:25 +0200 Subject: cleanup: remove parameter to ProfleWidget2::replot() Firstly, the parameter appears conceptually wrong, as replot suggests that the currently shown dive is replot. Secondly, the only caller that passed a parameter was passing in current_dive, which is just what happens if one doesn't pass a parameter. Therefore, change that caller (call plotDive directly) and remove the parameter. Signed-off-by: Berthold Stoeger --- desktop-widgets/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index cb1179d8c..a0a0dded0 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -783,7 +783,7 @@ void MainWindow::refreshProfile() { showProfile(); configureToolbar(); - graphics->replot(current_dive); + graphics->plotDive(current_dive, true); DivePictureModel::instance()->updateDivePictures(); } -- cgit v1.2.3-70-g09d2