Code

Tiny bit of refactoring (inverting some logic)
[inkscape.git] / src / event-context.cpp
index 1e47b9d9da4be0790ec4094543c7138eca6f8a2a..77c10765bdb37e014c4a29a5f784024bfe1a48f7 100644 (file)
@@ -744,10 +744,14 @@ gint sp_event_context_private_item_handler(SPEventContext *ec, SPItem *item,
     return ret;
 }
 
+/**
+ * @brief: Returns true if we're hovering above a knot (needed because we don't want to pre-snap in that case)
+ */
+
 bool sp_event_context_knot_mouseover(SPEventContext *ec)
 {
     if (ec->shape_editor) {
-        return !(ec->shape_editor->knot_mouseover());
+        return ec->shape_editor->knot_mouseover();
     }
 
     return false;