[GRASS-SVN] r56363 - grass/trunk/gui/wxpython/psmap

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 22 09:33:40 PDT 2013


Author: annakrat
Date: 2013-05-22 09:33:40 -0700 (Wed, 22 May 2013)
New Revision: 56363

Modified:
   grass/trunk/gui/wxpython/psmap/frame.py
Log:
wxGUI/composer: fix multiline text on Windows

Modified: grass/trunk/gui/wxpython/psmap/frame.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/frame.py	2013-05-22 15:52:32 UTC (rev 56362)
+++ grass/trunk/gui/wxpython/psmap/frame.py	2013-05-22 16:33:40 UTC (rev 56363)
@@ -2069,8 +2069,11 @@
         fn = self.parent.makePSFont(textDict)
 
         pdc.SetFont(fn)
-        pdc.SetTextForeground(convertRGB(textDict['color']))        
-        pdc.DrawRotatedText(textDict['text'], coords[0], coords[1], rot)
+        pdc.SetTextForeground(convertRGB(textDict['color']))
+        if rot == 0:
+            pdc.DrawLabel(text = textDict['text'], rect = bounds)
+        else:
+            pdc.DrawRotatedText(textDict['text'], coords[0], coords[1], rot)
         
         pdc.SetIdBounds(drawId, wx.Rect(*bounds))
         self.Refresh()



More information about the grass-commit mailing list