From b3179380cfc2ebbea4eb2ec4ad218ae42060f266 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 18 Jan 2014 10:35:35 +0100 Subject: Fix crash in new profile The gasPressureItem needs to be initialized to null in the constructor. Signed-off-by: Michael Andreen Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 201c68f41..7c2e9c616 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -35,6 +35,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : diveProfileItem(NULL), cylinderPressureAxis(new DiveCartesianAxis()), temperatureItem(NULL), + gasPressureItem(NULL), cartesianPlane(new DiveCartesianPlane()) { setScene(new QGraphicsScene()); -- cgit v1.2.3-70-g09d2