[gnome-maps] mapView: do not set invalid min zoom levels.



commit e035ccca537ed9bb9cc9612a920cef789a10a165
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Tue Feb 25 13:41:26 2014 +0100

    mapView: do not set invalid min zoom levels.
    
    If we try to set zoom-levels that are not allowed we will end up in
    a endless loop.

 src/mapView.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 99ac1d8..0651182 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -82,7 +82,7 @@ const MapView = new Lang.Class({
 
         // switching map type will set view min-zoom-level from map source
         this.view.connect('notify::min-zoom-level', (function() {
-            if (this.view.min_zoom_level != MapMinZoom) {
+            if (this.view.min_zoom_level < MapMinZoom) {
                 this.view.min_zoom_level = MapMinZoom;
             }
         }).bind(this));


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