From 5540471ce4874598f1bae33ca5057e743df61b49 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 12 Aug 2021 23:18:23 +0200 Subject: [PATCH] profile: remove text related code in DivePercentageItem This never sets any text. Signed-off-by: Berthold Stoeger --- profile-widget/diveprofileitem.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index 0d4867657..91b898bb4 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -258,9 +258,6 @@ void DivePercentageItem::replot(const dive *d, bool) colors.push_back(ColorScale(value, inert)); } setPolygon(poly); - - if (texts.count()) - texts.last()->setAlignment(Qt::AlignLeft | Qt::AlignBottom); } QColor DivePercentageItem::ColorScale(double value, int inert)