[gnome-maps] mapView: do not set invalid min zoom levels.
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] mapView: do not set invalid min zoom levels.
- Date: Tue, 25 Feb 2014 12:43:44 +0000 (UTC)
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]