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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 4 11:05:25 EDT 2009


Author: martinl
Date: 2009-05-04 11:05:25 -0400 (Mon, 04 May 2009)
New Revision: 36981

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
Log:
wxGUI: fix DrawBitmap


Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py	2009-05-04 14:59:03 UTC (rev 36980)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py	2009-05-04 15:05:25 UTC (rev 36981)
@@ -286,7 +286,7 @@
         if pdctype == 'image': # draw selected image
             bitmap = wx.BitmapFromImage(img)
             w,h = bitmap.GetSize()
-            pdc.DrawBitmap(bitmap, wx.Point(coords[0], coords[1]), True) # draw the composite map
+            pdc.DrawBitmap(bitmap, coords[0], coords[1], True) # draw the composite map
             pdc.SetIdBounds(drawid, wx.Rect(coords[0],coords[1], w, h))
 
         elif pdctype == 'box': # draw a box on top of the map



More information about the grass-commit mailing list