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>
This commit is contained in:
Michael Andreen 2014-01-18 10:35:35 +01:00 committed by Dirk Hohndel
parent 35979537d9
commit b3179380cf

View file

@ -35,6 +35,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
diveProfileItem(NULL),
cylinderPressureAxis(new DiveCartesianAxis()),
temperatureItem(NULL),
gasPressureItem(NULL),
cartesianPlane(new DiveCartesianPlane())
{
setScene(new QGraphicsScene());