[GRASS-dev] v.digit startup error from -n position

Markus Neteler neteler at itc.it
Fri Aug 4 05:24:22 EDT 2006


On Wed, Aug 02, 2006 at 11:28:25PM +0100, Glynn Clements wrote:
> 
> Michael Barton wrote:
> 
> > OK. Looking through to the very bottom of the thread, there appears to be
> > some confusion about what is meant by GUI.
> > 
> > If v.digit is having a problem with a new vector when run from the toolbar
> > button in gism, it  is one thing. This SHOULD be OK. I've checked the code
> > and it is written...
> > 
> >   v.digit -n map=new_map
> > 
> > ... as Glynn indicated. If this is where the problem lies, then, there is
> > some other kind of issue.
> 
> Contrary to the "resolved" status in the RT, the real bug remains.
> 
> v.digit is calling Tk_Main() as:
> 
>     Tk_Main(argc, argv, Tcl_AppInit);
> 
> where argc/argv are those passed to main.
> 
> It shouldn't be doing this; it should be passing a dummy argv, e.g.
> 
>     char *fake_argv[2];
> 	...
>     fake_argv[0] = argv[0];
>     fake_argv[1] = NULL;
>     Tk_Main(1, fake_argv, Tcl_AppInit);
> 
> Changing the order of v.digit's arguments is a workaround, not a fix.
>

Now fixed as suggested.
Someone may close the report, cannot find it.


Markus 




More information about the grass-dev mailing list