[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA: Seg fault in gschem
Hi again,
[snip]
>in a new schematics, draw one net. Select, edit add attribute label (or
>net) called xyz. close.
>Select wire again, delete label, close.
>
>Click anywhere on the window and gschem seg faults.
>
Okay... here's the bug fix. :-)
Add the following line to gschem/src/x_dialog.c around like 288.
o_selection_remove(w_current->page_current->selection2_head, attrib);
So that you end up with code that looks like:
...
o_selection_remove(w_current->page_current->selection2_head, attrib);
o_delete_text(w_current,attrib);
w_current->page_current->CHANGED=1;
o_undo_savestate(w_current, UNDO_ALL);
...
Here's a cvs diff before I checked this in:
Index: x_dialog.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/src/x_dialog.c,v
retrieving revision 1.51
diff -r1.51 x_dialog.c
287a288
> o_selection_remove(w_current->page_current->selection2_head, attrib);
290a292
>
This bug fix is now in CVS. Let me know if gschem cores (doesn't
for me now).
-Ales