Browse Source

attempt to fix https://trac.osgeo.org/grass/ticket/728
(merge https://trac.osgeo.org/grass/changeset/41305 from devbr6)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41306 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 15 years ago
parent
commit
82edb2b8d0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gui/wxpython/gui_modules/georect.py

+ 2 - 1
gui/wxpython/gui_modules/georect.py

@@ -281,7 +281,8 @@ class GeorectWizard(object):
         self.SwitchEnv('original')
         self.parent.georectifying = None
 
-        if hasattr(self, "xy_mapdisp"):
+        if hasattr(self, "xy_mapdisp") and \
+                self.xy_mapdisp:
             self.xy_mapdisp.Close()
             self.xy_mapdisp = None