[GRASS-SVN] r56134 - grass/branches/develbranch_6/gui/wxpython/psmap

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 5 09:30:47 PDT 2013


Author: annakrat
Date: 2013-05-05 09:30:46 -0700 (Sun, 05 May 2013)
New Revision: 56134

Modified:
   grass/branches/develbranch_6/gui/wxpython/psmap/frame.py
Log:
wxGUI/composer: again fix for #1959

Modified: grass/branches/develbranch_6/gui/wxpython/psmap/frame.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/psmap/frame.py	2013-05-05 15:55:36 UTC (rev 56133)
+++ grass/branches/develbranch_6/gui/wxpython/psmap/frame.py	2013-05-05 16:30:46 UTC (rev 56134)
@@ -2004,6 +2004,11 @@
     def DrawBitmap(self, pdc, filePath, rotation, bbox):
         """!Draw bitmap using PIL"""
         pImg = PILImage.open(filePath)
+        if sys.platform == 'win32' and \
+           'eps' in os.path.splitext(filePath)[1].lower():
+               import types
+               pImg.load = types.MethodType(loadPSForWindows, pImg)
+        
         if rotation:
             # get rid of black background
             pImg = pImg.convert("RGBA")



More information about the grass-commit mailing list