From dcf520a7a9cd6acd76052122f97f0e379bf30fa5 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 26 Mar 2023 22:55:05 +0200 Subject: [PATCH] Fix locations for geouris with uncertainty --- src/models/messageeventmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/messageeventmodel.cpp b/src/models/messageeventmodel.cpp index 82d7838f2..180c360f7 100644 --- a/src/models/messageeventmodel.cpp +++ b/src/models/messageeventmodel.cpp @@ -822,7 +822,7 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const if (geoUri.isEmpty()) { return {}; } - const auto latitude = geoUri.split(u':')[1].split(u',')[0]; + const auto latitude = geoUri.split(u';')[0].split(u':')[1].split(u',')[0]; return latitude.toFloat(); } @@ -831,7 +831,7 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const if (geoUri.isEmpty()) { return {}; } - const auto latitude = geoUri.split(u':')[1].split(u',')[1]; + const auto latitude = geoUri.split(u';')[0].split(u':')[1].split(u',')[1]; return latitude.toFloat(); }