From 1fbdc387c81c5a79178f66921e72b6f810fac1a5 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 12 Mar 2022 14:06:12 +0100 Subject: [PATCH] profile: properly initialize zoomedPosition This was not set to zero in the constructor, making valgrind go crazy. Rightly so. Signed-off-by: Berthold Stoeger --- profile-widget/profilewidget2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index c480f3ed7..3f2cbdeee 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -48,6 +48,7 @@ ProfileWidget2::ProfileWidget2(DivePlannerPointsModel *plannerModelIn, double dp currentState(INIT), plannerModel(plannerModelIn), zoomLevel(0), + zoomedPosition(0.0), #ifndef SUBSURFACE_MOBILE toolTipItem(new ToolTipItem()), #endif