copy the style of the object when pushing it to the undo stack, so undoing

* plug-ins/gfig/gfig-dobject.c: copy the style of the object when
  pushing it to the undo stack, so undoing works as expected.
This commit is contained in:
David Odin 2004-11-28 23:00:10 +00:00
parent c90ab3046d
commit 09c629018d
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-11-28 DindinX <dindinx@gimp.org>
* plug-ins/gfig/gfig-dobject.c: copy the style of the object when
pushing it to the undo stack, so undoing works as expected.
2004-11-28 DindinX <dindinx@gimp.org>
* plug-ins/gfig/gfig-style.c

View file

@ -684,6 +684,7 @@ copy_all_objs (GList *objs)
{
GfigObject *object = objs->data;
GfigObject *new_object = (GfigObject *) object->class->copyfunc (object);
gfig_style_copy (&new_object->style, &object->style, "Object");
new_all_objs = g_list_append (new_all_objs, new_object);