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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-12 12:20:25 +02:00 committed by Dirk Hohndel
parent 8f8457ebe4
commit d520ac2286
3 changed files with 4 additions and 4 deletions

View file

@ -783,7 +783,7 @@ void MainWindow::refreshProfile()
{
showProfile();
configureToolbar();
graphics->replot(current_dive);
graphics->plotDive(current_dive, true);
DivePictureModel::instance()->updateDivePictures();
}