summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Michael Andreen <harv@ruin.nu>2014-01-18 10:35:35 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-18 07:22:23 -0800
commitb3179380cfc2ebbea4eb2ec4ad218ae42060f266 (patch)
tree7e79a3c6fe53603f500b053756d284aa8fc4a50f
parent35979537d9fc42987648db39f64f6bc01052ed17 (diff)
downloadsubsurface-b3179380cfc2ebbea4eb2ec4ad218ae42060f266.tar.gz
Fix crash in new profile
The gasPressureItem needs to be initialized to null in the constructor. Signed-off-by: Michael Andreen <harv@ruin.nu> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/profile/profilewidget2.cpp1
1 files changed, 1 insertions, 0 deletions
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());