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>
This commit is contained in:
Tomaz Canabrava 2015-07-08 11:59:46 -03:00 committed by Dirk Hohndel
parent bea24edc29
commit 127f3b7da1

View file

@ -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);
}