diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-04 19:37:48 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-04 19:37:48 +0000 |
| commit | 09ab1cca2d7fb8cdbb252feb4d1ef7945249c051 (patch) | |
| tree | 4b87cb52a803018879b07fc74577214d6a59ce59 /src/knotholder.cpp | |
| parent | Begin first stage of resolving issue with duplicate knots (diff) | |
| download | inkscape-09ab1cca2d7fb8cdbb252feb4d1ef7945249c051.tar.gz inkscape-09ab1cca2d7fb8cdbb252feb4d1ef7945249c051.zip | |
Prevent crash on "three knot" issue
(bzr r13090.1.47)
Diffstat (limited to 'src/knotholder.cpp')
| -rw-r--r-- | src/knotholder.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp index 94a041385..30a7e58d5 100644 --- a/src/knotholder.cpp +++ b/src/knotholder.cpp @@ -234,9 +234,14 @@ KnotHolder::knot_ungrabbed_handler(SPKnot */*knot*/, guint) else object_verb = SP_VERB_SELECTION_DYNAMIC_OFFSET; } - - DocumentUndo::done(object->document, object_verb, - _("Move handle")); + if (object) { //increasingly aggressive sanity checks + if (object->document) { + if (object_verb <= SP_VERB_LAST && object_verb >= SP_VERB_INVALID) { + DocumentUndo::done(object->document, object_verb, + _("Move handle")); + } + } + } //else { abort(); } } } |
