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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 17 05:50:59 EDT 2010


Author: mmetz
Date: 2010-07-17 09:50:59 +0000 (Sat, 17 Jul 2010)
New Revision: 42812

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
Log:
show empty image if no map to display

Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py	2010-07-17 08:08:17 UTC (rev 42811)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py	2010-07-17 09:50:59 UTC (rev 42812)
@@ -687,7 +687,7 @@
         @return wx.Image instance (map composition)
         """
         imgId = 99
-        if self.Map.mapfile and os.path.isfile(self.Map.mapfile) and \
+        if self.mapfile and self.Map.mapfile and os.path.isfile(self.Map.mapfile) and \
                 os.path.getsize(self.Map.mapfile):
             img = wx.Image(self.Map.mapfile, wx.BITMAP_TYPE_ANY)
         else:



More information about the grass-commit mailing list