diff options
Diffstat (limited to 'qt-models/gpslistmodel.cpp')
-rw-r--r-- | qt-models/gpslistmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/gpslistmodel.cpp b/qt-models/gpslistmodel.cpp index 4a4a8feac..8d874d67b 100644 --- a/qt-models/gpslistmodel.cpp +++ b/qt-models/gpslistmodel.cpp @@ -46,9 +46,9 @@ QVariant GpsListModel::data(const QModelIndex &index, int role) const else if (role == GpsNameRole) return gt.name; else if (role == GpsLatitudeRole) - return QString::number(gt.latitude.udeg / 1000000.0, 'f', 6); + return QString::number(gt.location.lat.udeg / 1000000.0, 'f', 6); else if (role == GpsLongitudeRole) - return QString::number(gt.longitude.udeg / 1000000.0, 'f', 6); + return QString::number(gt.location.lon.udeg / 1000000.0, 'f', 6); return QVariant(); } |