diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-15 01:50:06 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-15 01:50:06 +0000 |
| commit | 6f508cfcaa161695711309d3413b90d2b3f44ea0 (patch) | |
| tree | 32ca88b4cce16f97d72e8994497006720ee60dea /src/knotholder.cpp | |
| parent | Update to trunk (checking build failure on Windows) (diff) | |
| download | inkscape-6f508cfcaa161695711309d3413b90d2b3f44ea0.tar.gz inkscape-6f508cfcaa161695711309d3413b90d2b3f44ea0.zip | |
Minor things
(bzr r13090.1.58)
Diffstat (limited to 'src/knotholder.cpp')
| -rw-r--r-- | src/knotholder.cpp | 11 |
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 |
