diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-11-19 22:28:16 +0000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-19 22:28:16 +0000 |
commit | 21658383e5c188b588aecab46e827cb90a88bc26 (patch) | |
tree | 92030ebb3cec9020c271fc417e5844b26ceed37a /qt-ui/profile/profilewidget2.h | |
parent | 76c44dd6a30065e8d6aa9427aaae14f10cebb4a5 (diff) | |
download | subsurface-21658383e5c188b588aecab46e827cb90a88bc26.tar.gz |
Profile: keep the plotInfo in the corresponding member variable
We had the variable. As a pointer. Which we used memset to clear. Ouch -
that smells like some bad cut and paste.
With this change the object keeps the corresponding plotInfo around (just
like some others do) and can use it later. I suspect this code could use
some larger cleanup, but it's a bit too late for this in the development
cycle, I guess. I'm sure I'll regret this in the future...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r-- | qt-ui/profile/profilewidget2.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index 79d5938c1..477ddf4a7 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -16,6 +16,7 @@ #include "graphicsview-common.h" #include "divelineitem.h" #include "diveprofileitem.h" +#include "display.h" class RulerItem2; struct dive; @@ -145,7 +146,7 @@ private: // All those here should probably be merged into one structure, // So it's esyer to replicate for more dives later. // In the meantime, keep it here. - struct plot_info *plotInfo; + struct plot_info plotInfo; DepthAxis *profileYAxis; PartialGasPressureAxis *gasYAxis; TemperatureAxis *temperatureAxis; |