[shotwell] Fix GPS links for western longitude
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Fix GPS links for western longitude
- Date: Wed, 12 Sep 2018 11:55:22 +0000 (UTC)
commit 34ab606b1a2fda55b97b90e2c83712aab02e162b
Author: Jens Georg <mail jensge org>
Date: Wed Sep 12 07:54:47 2018 +0200
Fix GPS links for western longitude
src/Properties.vala | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/Properties.vala b/src/Properties.vala
index bb06f43d..2a07bb00 100644
--- a/src/Properties.vala
+++ b/src/Properties.vala
@@ -481,7 +481,7 @@ private class ExtendedProperties : Properties {
private string exposure_time;
private bool is_raw;
private string? development_path;
- private const string OSM_LINK_TEMPLATE =
"https://www.openstreetmap.org/?mlat=%1$s%2$f&mlon=%3$s%4$f#map=16/%1$s%2$f/%3$s%4$f";
+ private const string OSM_LINK_TEMPLATE =
"https://www.openstreetmap.org/?mlat=%1$f&mlon=%2$f#map=16/%1$f/%2$f";
public ExtendedProperties() {
base();
@@ -624,8 +624,7 @@ private class ExtendedProperties : Properties {
string? osm_link = null;
if (gps_lat != -1 && gps_lat_ref != "" && gps_long != -1 && gps_long_ref != "") {
var old_locale = Intl.setlocale(LocaleCategory.NUMERIC, "C");
- osm_link = OSM_LINK_TEMPLATE.printf(gps_lat_ref == "N" ? "" : "-", gps_lat,
- gps_long_ref == "E" ? "" : "-", gps_long);
+ osm_link = OSM_LINK_TEMPLATE.printf(gps_lat, gps_long);
Intl.setlocale(LocaleCategory.NUMERIC, old_locale);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]