From a719dcb0e9b591316d3fd3914a5835858befd911 Mon Sep 17 00:00:00 2001 From: gustav_b Date: Wed, 28 Mar 2007 20:38:10 +0000 Subject: Fix for #1684042 (undo while adding a shape with the mouse results in a crash.) (bzr r2774) --- src/document-undo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/document-undo.cpp') diff --git a/src/document-undo.cpp b/src/document-undo.cpp index 0462ff374..47d56ca66 100644 --- a/src/document-undo.cpp +++ b/src/document-undo.cpp @@ -201,7 +201,7 @@ void finish_incomplete_transaction(SPDocument &doc) { g_warning ("Incomplete undo transaction:"); priv.partial = sp_repr_coalesce_log(priv.partial, log); sp_repr_debug_print_log(priv.partial); - priv.undo = g_slist_prepend(priv.undo, priv.partial); + priv.undo = g_slist_prepend(priv.undo, new Inkscape::Event(priv.partial)); priv.partial = NULL; } } -- cgit v1.2.3