Opened 12 years ago

Closed 12 years ago

#1565 closed defect (fixed)

wxGUI: command console with no map display open causes error

Reported by: hamish Owned by: grass-dev@…
Priority: minor Milestone: 6.4.3
Component: wxGUI Version: svn-releasebranch64
Keywords: command console Cc:
CPU: x86-64 Platform: Linux



if you close all map display windows so you only have the layer manager open, switch to the command console tab, and run ' roads' or 'r.univar elevation.dem' etc the module runs fine but an error is printed after it:

Traceback (most recent call last):
  File ".../svn/relbr_6_4/dist.x86_64
line 789, in OnCmdDone

display = self.parent.GetLayerTree().GetMapDisplay()
  File ".../svn/relbr_6_4/dist.x86_64
-unknown-linux-gnu/etc/wxpython/", line 441, in

return self.curr_page.maptree
'NoneType' object has no attribute 'maptree'

thanks, Hamish

ps- in the grey bar between the top output pane and the bottom input pane, could there be some text like "Enter command below:"? otherwise new users just see a bunch of empty white boxes and don't know where they should click. 6.4.1 had some "Cmd> " text to the left of the input box which helped as a cue.

Change History (2)

comment:1 by neteler, 12 years ago


Still the case in 6.4.svn, r52816.

comment:2 by annakrat, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in r52818, r52819, r52820, however this is a common problem which should be solved later by refactoring.

Note: See TracTickets for help on using tickets.