[GRASS-dev] grass location creation

Glynn Clements glynn at gclements.plus.com
Fri Mar 9 07:37:47 EST 2007


Jachym Cepicky wrote:

> general/g.region/cmd/main.c:
> 
> 851         if (flag.savedefault->answer)
> 852             if (strcmp(G_mapset(),"PERMANENT") == 0)
> 853                 G__put_window( &window, "../PERMANENT", "DEFAULT_WIND" );
> 854             else
> 855                 G_warning(_("You are not in mapset PERMANENT, default region    -> remains untached"));
> 
> is it sufficient?

  853                 G__put_window( &window, "", "DEFAULT_WIND" );

If you're already in PERMANENT, there's no need for "../PERMANENT".

Otherwise, fine.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list