[gnome-maps] Fix zoom not working on startup



commit 62813a4aaee35d4a629b78df09fdf4c0aa8522fc
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Apr 5 15:05:05 2013 +0300

    Fix zoom not working on startup
    
    This fixes a regression from commit b5a981c.

 src/mapView.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 87993f7..a131ef6 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -91,7 +91,7 @@ const MapView = new Lang.Class({
 
     _gotoUserLocation: function () {
         let lastLocation = Application.settings.get_value('last-location');
-        if (lastLocation.n_children() == 2) {
+        if (lastLocation.n_children() >= 3) {
             let lat = lastLocation.get_child_value(0);
             let lng = lastLocation.get_child_value(1);
             let accuracy = lastLocation.get_child_value(2);


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