[GRASS-SVN] r55015 - grass/trunk/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 12 04:21:02 PST 2013


Author: annakrat
Date: 2013-02-12 04:21:02 -0800 (Tue, 12 Feb 2013)
New Revision: 55015

Modified:
   grass/trunk/gui/wxpython/modules/histogram.py
Log:
wxGUI/histogram: properly initialize bitmap

Modified: grass/trunk/gui/wxpython/modules/histogram.py
===================================================================
--- grass/trunk/gui/wxpython/modules/histogram.py	2013-02-12 12:14:49 UTC (rev 55014)
+++ grass/trunk/gui/wxpython/modules/histogram.py	2013-02-12 12:21:02 UTC (rev 55015)
@@ -74,7 +74,8 @@
         self.imagedict = {} # images and their PseudoDC ID's for painting and dragging
         
         self.pdc = wx.PseudoDC()
-        self._buffer = '' # will store an off screen empty bitmap for saving to file
+        # will store an off screen empty bitmap for saving to file
+        self._buffer = wx.EmptyBitmap(max(1, self.Map.width), max(1, self.Map.height))
         
         # make sure that extents are updated at init
         self.Map.region = self.Map.GetRegion()



More information about the grass-commit mailing list