[GRASS-SVN] r49340 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 23 13:01:27 EST 2011


Author: annakrat
Date: 2011-11-23 10:01:27 -0800 (Wed, 23 Nov 2011)
New Revision: 49340

Modified:
   grass/trunk/gui/wxpython/gui_modules/psmap_dialogs.py
Log:
wxGUI: Map Composer: fixed bug - don't select anything when list of images is empty

Modified: grass/trunk/gui/wxpython/gui_modules/psmap_dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/psmap_dialogs.py	2011-11-23 16:12:25 UTC (rev 49339)
+++ grass/trunk/gui/wxpython/gui_modules/psmap_dialogs.py	2011-11-23 18:01:27 UTC (rev 49340)
@@ -5864,7 +5864,7 @@
         if self.imageDict['epsfile']:
             file = os.path.basename(self.imageDict['epsfile'])
             self.imagePanel.image['list'].SetStringSelection(file)
-        else:
+        elif imageList:
             self.imagePanel.image['list'].SetSelection(0)
         self.OnImageSelectionChanged(None)
         



More information about the grass-commit mailing list