diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-07-08 11:59:46 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-08 08:08:46 -0700 |
commit | 127f3b7da18a362465e33f051ede058ec2d428ab (patch) | |
tree | a32dc5d1f210ecbe259a14f437b315aa62010747 | |
parent | bea24edc29edca089ab03e44a2a46338e14128ac (diff) | |
download | subsurface-127f3b7da18a362465e33f051ede058ec2d428ab.tar.gz |
Use current dive site to get the information
and not the displayed_dive_site. tsc.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/modeldelegates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 2c03a80f5..3357d3909 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -512,7 +512,7 @@ void LocationFilterDelegate::paint(QPainter *painter, const QStyleOptionViewItem } if (bottomText.isEmpty()) { - const char *gpsCoords = printGPSCoords(displayed_dive_site.latitude.udeg, displayed_dive_site.longitude.udeg); + const char *gpsCoords = printGPSCoords(ds->latitude.udeg, ds->longitude.udeg); bottomText = QString(gpsCoords); free( (void*) gpsCoords); } |