[GRASS-SVN] r42814 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 17 05:58:56 EDT 2010


Author: mmetz
Date: 2010-07-17 09:58:56 +0000 (Sat, 17 Jul 2010)
New Revision: 42814

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

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py	2010-07-17 09:55:41 UTC (rev 42813)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py	2010-07-17 09:58:56 UTC (rev 42814)
@@ -661,7 +661,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