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:
parent
35979537d9
commit
b3179380cf
@ -35,6 +35,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
|
||||
diveProfileItem(NULL),
|
||||
cylinderPressureAxis(new DiveCartesianAxis()),
|
||||
temperatureItem(NULL),
|
||||
gasPressureItem(NULL),
|
||||
cartesianPlane(new DiveCartesianPlane())
|
||||
{
|
||||
setScene(new QGraphicsScene());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user