[GRASS-SVN] r67760 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 7 11:52:25 PST 2016


Author: martinl
Date: 2016-02-07 11:52:25 -0800 (Sun, 07 Feb 2016)
New Revision: 67760

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: fix gdalselect when no layer option is defined

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2016-02-07 15:13:23 UTC (rev 67759)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2016-02-07 19:52:25 UTC (rev 67760)
@@ -2262,7 +2262,8 @@
             win = self.FindWindowById(porf['wxId'][0])
             porf['value'] = win.GetDsn()
             pLayer = self.task.get_param('layer', element = 'name', raiseError = False)
-            pLayer['value'] = ''
+            if pLayer:
+                pLayer['value'] = ''
         else:
             if isinstance(me, wx.SpinCtrl):
                 porf['value'] = str(me.GetValue())



More information about the grass-commit mailing list