[GRASS-SVN] r42813 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 17 05:55:41 EDT 2010


Author: mmetz
Date: 2010-07-17 09:55:41 +0000 (Sat, 17 Jul 2010)
New Revision: 42813

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

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2010-07-17 09:50:59 UTC (rev 42812)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2010-07-17 09:55:41 UTC (rev 42813)
@@ -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