I've narrowed the bug in xfig-import.c down to the handling of groups.
Everything else behaves nicely (well, doesn't crash at least), but whenever
there is a group involved, it crashes when the window gets closed.
This is the function I use to create a group. The items are all already
added to the layer, and work fine outside of groups. Am I missing
something crucial about groups?
static Object *
create_standard_group(GList *items, DiagramData *dia) {
Object *new_obj;
new_obj = group_create((GList*)items);
layer_add_object(dia->active_layer, new_obj);
return new_obj;
}
-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause) | H�rdgrim of Numenor
"I do not agree with a word that you say, but I | Retainer of Sir Kegg
will defend to the death your right to say it." | of Westfield
--Evelyn Beatrice Hall paraphrasing Voltaire | Chaos Berserker of Khorne