[shotwell/shotwell-0.30] Fix GPS links for western longitude



commit ae2a74aecc9b0c187e28a1db5ac4f798f62cb23f
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&amp;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&amp;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]