summaryrefslogtreecommitdiffstats
path: root/src/document-undo.cpp
diff options
context:
space:
mode:
authorgustav_b <gustav_b@users.sourceforge.net>2007-03-28 20:38:10 +0000
committergustav_b <gustav_b@users.sourceforge.net>2007-03-28 20:38:10 +0000
commita719dcb0e9b591316d3fd3914a5835858befd911 (patch)
treeaa96733ddde2364f48a95663023ffbdd219f8f84 /src/document-undo.cpp
parentAdd shift+click to union new fill with old selection (diff)
downloadinkscape-a719dcb0e9b591316d3fd3914a5835858befd911.tar.gz
inkscape-a719dcb0e9b591316d3fd3914a5835858befd911.zip
Fix for #1684042 (undo while adding a shape with the mouse results in a crash.)
(bzr r2774)
Diffstat (limited to 'src/document-undo.cpp')
-rw-r--r--src/document-undo.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}