From 09c629018dac44bfd27e6c1459eca6bc6ea0d393 Mon Sep 17 00:00:00 2001 From: David Odin Date: Sun, 28 Nov 2004 23:00:10 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ plug-ins/gfig/gfig-dobject.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index ac250be398..043c321c2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-28 DindinX + + * 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 * plug-ins/gfig/gfig-style.c diff --git a/plug-ins/gfig/gfig-dobject.c b/plug-ins/gfig/gfig-dobject.c index 1712fe73af..fc7d3c869b 100644 --- a/plug-ins/gfig/gfig-dobject.c +++ b/plug-ins/gfig/gfig-dobject.c @@ -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);