[gnome-maps/wip/mlundblad/osm-edit-negative-integers: 3/4] osmUtils: Always update altitude when set




commit 7b9662376f64ce68a493e3b749c400690c5d3141
Author: Marcus Lundblad <ml update uu se>
Date:   Sun Aug 23 23:31:06 2020 +0200

    osmUtils: Always update altitude when set

 src/osmUtils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/osmUtils.js b/src/osmUtils.js
index e3c06ead..7ce4b2a2 100644
--- a/src/osmUtils.js
+++ b/src/osmUtils.js
@@ -65,7 +65,7 @@ function updatePlaceFromOSMObject(place, object) {
 
     let altitude = object.get_tag('ele');
 
-    if (altitude > 0)
+    if (altitude)
         place.location.altitude = altitude;
 
     Application.placeStore.updatePlace(place);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]