summaryrefslogtreecommitdiffstats
path: root/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r--subsurface-core/subsurface-qt/DiveObjectHelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
index 7db882da2..94ba93726 100644
--- a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
+++ b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
@@ -33,7 +33,7 @@ static QString getFormattedCylinder(struct dive *dive, unsigned int idx)
return fmt;
}
-DiveObjectHelper::DiveObjectHelper(struct dive *d) : m_number(d->number),
+DiveObjectHelper::DiveObjectHelper(struct dive *d) :
m_id(d->id),
m_rating(d->rating),
m_timestamp(d->when),
@@ -128,7 +128,7 @@ DiveObjectHelper::~DiveObjectHelper()
int DiveObjectHelper::number() const
{
- return m_number;
+ return m_dive->number;
}
int DiveObjectHelper::id() const