diff options
Diffstat (limited to 'src/knotholder.cpp')
| -rw-r--r-- | src/knotholder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp index 28f6f5748..de1b88b2c 100644 --- a/src/knotholder.cpp +++ b/src/knotholder.cpp @@ -171,7 +171,8 @@ KnotHolder::knot_clicked_handler(SPKnot *knot, guint state) if (saved_item) { //increasingly aggressive sanity checks if (saved_item->document) { - if (object_verb <= SP_VERB_LAST && object_verb >= SP_VERB_INVALID) { + // enum is unsigned so can't be less than SP_VERB_INVALID + if (object_verb <= SP_VERB_LAST) { DocumentUndo::done(saved_item->document, object_verb, _("Change handle")); } |
