[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: current working file name in gschemrc
Hi Kai-Martin Knaak,
Oh, I remember there is a bug in the gschem/src/g_funcs.c file.
You may want to change the "get_selected_filename" function
in "g_funcs.c" file, (around line number 299), as follows:
/*
===================================================================== */
SCM get_selected_filename(GSCHEM_TOPLEVEL *w_current)
{
gchar* s; /*
Added */
SCM return_value;
exit_if_null(w_current);
s = g_strdup(w_current->toplevel->page_current->page_filename); /*
Changed */
return_value = scm_makfrom0str (s); /*
Changed */
g_free (s); /*
Added */
return return_value; /*
Changed */
}
/*
===================================================================== */
The above change made the (get_selected_filename) work for me.
Hope it helps.
Best Regards,
Paul Tan
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user