From 8c2269c58e751f3fb623cb0cfd7b0e7391c86cbb Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Tue, 3 Feb 2009 20:26:33 +0000 Subject: [PATCH] Dont call map if URL empty. svn: r11832 --- src/plugins/lib/libmapservice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/lib/libmapservice.py b/src/plugins/lib/libmapservice.py index db46b3d2d..010cff547 100644 --- a/src/plugins/lib/libmapservice.py +++ b/src/plugins/lib/libmapservice.py @@ -61,7 +61,9 @@ class MapService(): self.url = '' #An instance is called, we display the result self.calc_url() - self.__display() + # Don't call the map if empty url. + if len(self.url) >0: + self.__display() self._free() def _get_first_place(self):