profile: properly initialize zoomedPosition

This was not set to zero in the constructor, making valgrind
go crazy. Rightly so.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-03-12 14:06:12 +01:00
parent a41742ab4d
commit 1fbdc387c8

View file

@ -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