From e8698d615b2080da17d2b2ecb7efcd90546f6563 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 20 Jan 2022 15:42:22 +0100 Subject: [PATCH] profile: call plotProfile() with correct parameters in draw() The signature of draw() was changed to include "keepPlotData" as an optimization. The caller in draw() was not changed and now the plot data is not recalculated, which means no plot data at all in prints and exports. The various boolean parameters should be replaced by flags. Signed-off-by: Berthold Stoeger --- profile-widget/profilescene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile-widget/profilescene.cpp b/profile-widget/profilescene.cpp index d3754aa4a..5b063fea4 100644 --- a/profile-widget/profilescene.cpp +++ b/profile-widget/profilescene.cpp @@ -600,7 +600,7 @@ void ProfileScene::draw(QPainter *painter, const QRect &pos, { QSize size = pos.size(); resize(QSizeF(size)); - plotDive(d, dc, plannerModel, inPlanner, true, true); + plotDive(d, dc, plannerModel, inPlanner, true, false, true); QImage image(pos.size(), QImage::Format_ARGB32); image.fill(getColor(::BACKGROUND, isGrayscale));