From: buliabyak Date: Tue, 18 Aug 2009 22:53:04 +0000 (+0000) Subject: patch from 289774 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3b21fff0b5ea6fd5703e21a67081251b46001348;p=inkscape.git patch from 289774 --- diff --git a/src/pen-context.cpp b/src/pen-context.cpp index 4c9627071..144717332 100644 --- a/src/pen-context.cpp +++ b/src/pen-context.cpp @@ -538,9 +538,6 @@ static gint pen_handle_button_press(SPPenContext *const pc, GdkEventButton const p = event_dt; spdc_endpoint_snap(pc, p, bevent.state); /* Snap node only if not hitting anchor. */ spdc_pen_set_subsequent_point(pc, p, true); - if (pc->polylines_only) { - spdc_pen_finish_segment(pc, p, bevent.state); - } } } @@ -784,10 +781,8 @@ pen_handle_button_release(SPPenContext *const pc, GdkEventButton const &revent) switch (pc->state) { case SP_PEN_CONTEXT_POINT: case SP_PEN_CONTEXT_CONTROL: - if (!pc->polylines_only) { - spdc_endpoint_snap(pc, p, revent.state); - spdc_pen_finish_segment(pc, p, revent.state); - } + spdc_endpoint_snap(pc, p, revent.state); + spdc_pen_finish_segment(pc, p, revent.state); break; case SP_PEN_CONTEXT_CLOSE: spdc_endpoint_snap(pc, p, revent.state);