[GRASS-dev] [GRASS GIS] #1441: Hard Copy Map Utility (wxPython wrapper for ps.map) text overlay is broken

GRASS GIS trac at osgeo.org
Mon Sep 5 03:33:38 EDT 2011


#1441: Hard Copy Map Utility (wxPython wrapper for ps.map) text overlay is broken
-------------------------------------------+--------------------------------
 Reporter:  cmbarton                       |       Owner:  grass-dev@…              
     Type:  defect                         |      Status:  new                      
 Priority:  normal                         |   Milestone:  6.4.2                    
Component:  wxGUI                          |     Version:  svn-trunk                
 Keywords:  hard copy map utility, ps.map  |    Platform:  Unspecified              
      Cpu:  Unspecified                    |  
-------------------------------------------+--------------------------------
 Trying to add text to an output cartography window in the hard copy map
 utility raises the following error:

 Traceback (most recent call last):
   File "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
 darwin10.8.0/etc/gui/wxpython/gui_modules/psmap_dialogs.py",
 line 1677, in OnOK

 ok = self.OnApply(event)
   File "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
 darwin10.8.0/etc/gui/wxpython/gui_modules/psmap_dialogs.py",
 line 1670, in OnApply

 self.parent.DialogDataChanged(id = self.id)
   File "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
 darwin10.8.0/etc/gui/wxpython/gui_modules/psmap.py", line
 763, in DialogDataChanged

 extent = self.getTextExtent(textDict =
 self.instruction[id].GetInstruction())
   File "/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-
 darwin10.8.0/etc/gui/wxpython/gui_modules/psmap.py", line
 681, in getTextExtent

 dc.SetFont(wx.FontFromNativeInfoString(textDict['font'] + "
 " + fontsize))
   File "/Users/Shared/grass_dev/grass70_dev/macosx/dist/GRAS
 S-7.0.app/Contents/MacOS/etc/python/wx/_gdi.py", line 2309,
 in FontFromNativeInfoString

 val = _gdi_.new_FontFromNativeInfoString(*args, **kwargs)
 wx._core

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1441>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list