X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fdocument-undo.cpp;h=9ce1dad603fa8f59af769b9aef213d579b989939;hb=ad4b3133547bb79aa1362ab40512d31267868c82;hp=f37b53f89c5d89c228d78dd5b9eb67c61aa3aeff;hpb=1b27a5820b3d93141c1dcc7d5eaea73e9c33ddee;p=inkscape.git diff --git a/src/document-undo.cpp b/src/document-undo.cpp index f37b53f89..9ce1dad60 100644 --- a/src/document-undo.cpp +++ b/src/document-undo.cpp @@ -152,9 +152,8 @@ sp_document_maybe_done (SPDocument *doc, const gchar *key, const unsigned int ev } if (key && doc->actionkey && !strcmp (key, doc->actionkey) && doc->priv->undo) { - doc->priv->undo->data = - new Inkscape::Event(sp_repr_coalesce_log (((Inkscape::Event *) - doc->priv->undo->data)->event, log)); + ((Inkscape::Event *)doc->priv->undo->data)->event = + sp_repr_coalesce_log (((Inkscape::Event *)doc->priv->undo->data)->event, log); } else { Inkscape::Event *event = new Inkscape::Event(log, event_type, event_description); doc->priv->undo = g_slist_prepend (doc->priv->undo, event);