aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/profilewidget2.cpp6
-rw-r--r--qt-ui/profile/profilewidget2.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 76c560fa6..0f38e5f1a 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -63,10 +63,10 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
temperatureAxis(new TemperatureAxis()),
timeAxis(new TimeAxis()),
diveProfileItem(new DiveProfileItem()),
- cylinderPressureAxis(new DiveCartesianAxis()),
+ cartesianPlane(new DiveCartesianPlane()),
temperatureItem(new DiveTemperatureItem()),
+ cylinderPressureAxis(new DiveCartesianAxis()),
gasPressureItem(new DiveGasPressureItem()),
- cartesianPlane(new DiveCartesianPlane()),
meanDepth(new MeanDepthLine()),
diveComputerText(new DiveTextItem()),
diveCeiling(new DiveCalculatedCeiling()),
@@ -75,6 +75,8 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
pheGasItem( new PartialPressureGasItem()),
po2GasItem( new PartialPressureGasItem())
{
+ memset(&plotInfo, 0, sizeof(plotInfo));
+
setupSceneAndFlags();
setupItemSizes();
setupItemOnScene();
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h
index ebc45f48a..605d93f58 100644
--- a/qt-ui/profile/profilewidget2.h
+++ b/qt-ui/profile/profilewidget2.h
@@ -81,7 +81,7 @@ private:
// So it's esyer to replicate for more dives later.
// In the meantime, keep it here.
struct plot_info *plotInfo;
- DepthAxis *profileYAxis ;
+ DepthAxis *profileYAxis;
PartialGasPressureAxis *gasYAxis;
TemperatureAxis *temperatureAxis;
TimeAxis *timeAxis;