diff options
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 2 | ||||
-rw-r--r-- | profile-widget/ruleritem.cpp | 8 | ||||
-rw-r--r-- | profile-widget/ruleritem.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 5d282fd95..156c456bc 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -718,7 +718,7 @@ void ProfileWidget2::plotDive(const struct dive *d, bool force, bool doClearPict cylinderPressureAxis->setMinimum(plotInfo.minpressure); cylinderPressureAxis->setMaximum(plotInfo.maxpressure); #ifndef SUBSURFACE_MOBILE - rulerItem->setPlotInfo(plotInfo); + rulerItem->setPlotInfo(&plotInfo); #endif #ifdef SUBSURFACE_MOBILE diff --git a/profile-widget/ruleritem.cpp b/profile-widget/ruleritem.cpp index 0bcebc4d4..c7b82a3c6 100644 --- a/profile-widget/ruleritem.cpp +++ b/profile-widget/ruleritem.cpp @@ -152,11 +152,11 @@ RulerNodeItem2 *RulerItem2::destNode() const return dest; } -void RulerItem2::setPlotInfo(plot_info info) +void RulerItem2::setPlotInfo(plot_info *info) { - pInfo = info; - dest->setPlotInfo(info); - source->setPlotInfo(info); + pInfo = *info; + dest->setPlotInfo(*info); + source->setPlotInfo(*info); dest->recalculate(); source->recalculate(); recalculate(); diff --git a/profile-widget/ruleritem.h b/profile-widget/ruleritem.h index 3a6c59480..3462a5d35 100644 --- a/profile-widget/ruleritem.h +++ b/profile-widget/ruleritem.h @@ -37,7 +37,7 @@ public: explicit RulerItem2(); void recalculate(); - void setPlotInfo(struct plot_info pInfo); + void setPlotInfo(struct plot_info *pInfo); RulerNodeItem2 *sourceNode() const; RulerNodeItem2 *destNode() const; void setAxis(DiveCartesianAxis *time, DiveCartesianAxis *depth); |