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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Apr 7 10:10:12 EDT 2008


Author: martinl
Date: 2008-04-07 10:10:12 -0400 (Mon, 07 Apr 2008)
New Revision: 30897

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI (mapdisp): drawId can be also '0' (used for barscale)


Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2008-04-07 14:07:02 UTC (rev 30896)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2008-04-07 14:10:12 UTC (rev 30897)
@@ -262,7 +262,7 @@
                        (drawid, pdctype, coords))
 
         # set PseudoDC id
-        if drawid:
+        if drawid is not None:
             pdc.SetId(drawid)
         
         if pdctype == 'clear': # erase the display



More information about the grass-commit mailing list