[PATCH] Fix crash in new profile
Michael Andreen
harv at ruin.nu
Sat Jan 18 01:35:35 UTC 2014
The gasPressureItem needs to be initialized to null in the constructor.
Signed-off-by: Michael Andreen <harv at ruin.nu>
---
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 201c68f..7c2e9c6 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());
--
1.8.3.2
More information about the subsurface
mailing list