瀏覽代碼

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 年之前
父節點
當前提交
82edb2b8d0
共有 1 個文件被更改,包括 2 次插入1 次删除
  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.SwitchEnv('original')
         self.parent.georectifying = None
         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.Close()
             self.xy_mapdisp = None
             self.xy_mapdisp = None