[GRASS-dev] Re: [GRASS GIS] #1338: Text doesn't display for
d.legend and d.barscale
GRASS GIS
trac at osgeo.org
Wed Jul 6 11:08:50 EDT 2011
#1338: Text doesn't display for d.legend and d.barscale
----------------------------+-----------------------------------------------
Reporter: snorfalorpagus | Owner: grass-dev@…
Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: cairo, fonts | Platform: MacOSX
Cpu: OSX/Intel |
----------------------------+-----------------------------------------------
Comment(by snorfalorpagus):
Still having this issue with r46963.
I've noticed that if I turn on labels (display=shape,attr), select an
attribute (attrcolumn=whatever) and change the label background/border
colours, the boxes for the labels appear in a size proportional to the
text, but the text does not display. When I leave the d.vect dialogue
(pressing OK) and go back into it, the attrcolumn is removed from the
command at the bottom and in the input box. If GRASS then tries to redraw
the labels (pressing Apply), the console outputs the following:
{{{
Traceback (most recent call last):
File "/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/w
xpython/gui_modules/layertree.py", line 233, in OnIdle
self.mapdisplay.MapWindow.UpdateMap(render = True)
File "/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/w
xpython/gui_modules/mapdisp_window.py", line 667, in
UpdateMap
windres = windres)
File "/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/w
xpython/gui_modules/render.py", line 868, in Render
self._renderLayers(force, mapWindow, maps, masks, opacities)
File "/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/w
xpython/gui_modules/render.py", line 812, in _renderLayers
if not layer.Render():
File "/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/w
xpython/gui_modules/render.py", line 158, in Render
**self.cmd[1])
TypeError
:
'NoneType' object is not iterable
Traceback (most recent call last):
File "/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/w
xpython/gui_modules/layertree.py", line 233, in OnIdle
self.mapdisplay.MapWindow.UpdateMap(render = True)
File "/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/w
xpython/gui_modules/mapdisp_window.py", line 667, in
UpdateMap
windres = windres)
File "/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/w
xpython/gui_modules/render.py", line 868, in Render
self._renderLayers(force, mapWindow, maps, masks, opacities)
File "/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/w
xpython/gui_modules/render.py", line 812, in _renderLayers
if not layer.Render():
File "/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/w
xpython/gui_modules/render.py", line 158, in Render
**self.cmd[1])
TypeError
:
'NoneType' object is not iterable
}}}
I guess this is due to the automatic removal of the attrcolumn.
I'm not sure where else to go with this.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1338#comment:10>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list