[GRASS-dev] Re: gis.m: font selection in module panels

Hamish hamish_nospam at yahoo.com
Sun May 20 22:54:21 EDT 2007

Michael Barton wrote:
> > Thanks for the font selection in the module panels, but I have the
> > following problem. I can select the font the first time, but when I
> > try to open the font dialog a second time in the same panel, I get:
> > 
> > can't read "env(GRASS_FONT)": no such variable
> > can't read "env(GRASS_FONT)": no such variable
> OK. GRASS_FONT is not set.
> >     while executing
> > "if {[info exists env(GRASS_FONT)] && $env(GRASS_FONT) != ""} {
> This is checking to see if GRASS_FONT is set or not. If not set, the
> clause if false and it should move to the else clause. It should not
> be raising an error.

is it missing 

  global env



More information about the grass-dev mailing list