From: buliabyak Date: Wed, 18 Jan 2006 07:29:52 +0000 (+0000) Subject: fix sticking highlight in selector knots X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=142443659db257ea5a031ce428d53e80452b0098;p=inkscape.git fix sticking highlight in selector knots --- diff --git a/src/knot.cpp b/src/knot.cpp index af567e6e4..12fa71066 100644 --- a/src/knot.cpp +++ b/src/knot.cpp @@ -798,7 +798,8 @@ void sp_knot_set_position(SPKnot *knot, NR::Point *p, guint state) } /** - * Move knot to new position, without emitting a MOVED signal. + * Move knot to new position, without emitting a MOVED signal. We can't be sure this artificial + * move has moved the knot from under cursor, but it seems likely, so we clear SP_KNOT_MOUSEOVER. */ void sp_knot_moveto(SPKnot *knot, NR::Point *p) { @@ -810,6 +811,8 @@ void sp_knot_moveto(SPKnot *knot, NR::Point *p) if (knot->item) { SP_CTRL(knot->item)->moveto (*p); } + + sp_knot_set_flag(knot, SP_KNOT_MOUSEOVER, FALSE); } /**