summaryrefslogtreecommitdiffstats
path: root/src/document-undo.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2014-01-19 05:38:09 +0000
committerMartin Owens <doctormo@gmail.com>2014-01-19 05:38:09 +0000
commiteac3c11251e65774a2f4f610f2799592978487d8 (patch)
tree11c68dad7013c79a38872f16d221d0c653dc2ffb /src/document-undo.cpp
parentFix missing embeded image condition, kindly caught by suv in bug #1270334 (diff)
downloadinkscape-eac3c11251e65774a2f4f610f2799592978487d8.tar.gz
inkscape-eac3c11251e65774a2f4f610f2799592978487d8.zip
Try another fix for the undo when dragging bug #168695
Fixed bugs: - https://launchpad.net/bugs/168695 (bzr r12955)
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 312ccb7f8..bad4d6c81 100644
--- a/src/document-undo.cpp
+++ b/src/document-undo.cpp
@@ -242,7 +242,7 @@ gboolean Inkscape::DocumentUndo::undo(SPDocument *doc)
g_assert (doc != NULL);
g_assert (doc->priv != NULL);
- g_assert (doc->priv->sensitive);
+ g_return_val_if_fail (doc->priv->sensitive, FALSE);
doc->priv->sensitive = FALSE;
doc->priv->seeking = true;