mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
a41742ab4d
commit
1fbdc387c8
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ ProfileWidget2::ProfileWidget2(DivePlannerPointsModel *plannerModelIn, double dp
|
||||||
currentState(INIT),
|
currentState(INIT),
|
||||||
plannerModel(plannerModelIn),
|
plannerModel(plannerModelIn),
|
||||||
zoomLevel(0),
|
zoomLevel(0),
|
||||||
|
zoomedPosition(0.0),
|
||||||
#ifndef SUBSURFACE_MOBILE
|
#ifndef SUBSURFACE_MOBILE
|
||||||
toolTipItem(new ToolTipItem()),
|
toolTipItem(new ToolTipItem()),
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue