summaryrefslogtreecommitdiffstats
path: root/src/knotholder.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-04-15 01:50:06 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-04-15 01:50:06 +0000
commit6f508cfcaa161695711309d3413b90d2b3f44ea0 (patch)
tree32ca88b4cce16f97d72e8994497006720ee60dea /src/knotholder.cpp
parentUpdate to trunk (checking build failure on Windows) (diff)
downloadinkscape-6f508cfcaa161695711309d3413b90d2b3f44ea0.tar.gz
inkscape-6f508cfcaa161695711309d3413b90d2b3f44ea0.zip
Minor things
(bzr r13090.1.58)
Diffstat (limited to 'src/knotholder.cpp')
-rw-r--r--src/knotholder.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp
index 30a7e58d5..aea983cbb 100644
--- a/src/knotholder.cpp
+++ b/src/knotholder.cpp
@@ -154,8 +154,15 @@ KnotHolder::knot_clicked_handler(SPKnot *knot, guint state)
}
// for drag, this is done by ungrabbed_handler, but for click we must do it here
- DocumentUndo::done(saved_item->document, object_verb,
- _("Change handle"));
+
+ if (saved_item) { //increasingly aggressive sanity checks
+ if (saved_item->document) {
+ if (object_verb <= SP_VERB_LAST && object_verb >= SP_VERB_INVALID) {
+ DocumentUndo::done(saved_item->document, object_verb,
+ _("Change handle"));
+ }
+ }
+ } // else { abort(); }
}
void