From: mental Date: Mon, 4 Sep 2006 20:30:59 +0000 (+0000) Subject: ensure that final resting position is included in calligraphic stroke X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0540a048bd3d009094122720d7e0512fd47f8d09;p=inkscape.git ensure that final resting position is included in calligraphic stroke --- diff --git a/src/dyna-draw-context.cpp b/src/dyna-draw-context.cpp index 758523245..ad275de13 100644 --- a/src/dyna-draw-context.cpp +++ b/src/dyna-draw-context.cpp @@ -547,9 +547,14 @@ sp_dyna_draw_context_root_handler(SPEventContext *event_context, case GDK_BUTTON_RELEASE: sp_canvas_item_ungrab(SP_CANVAS_ITEM(desktop->acetate), event->button.time); dc->is_drawing = false; + if ( dc->dragging && event->button.button == 1 ) { dc->dragging = FALSE; + NR::Point const motion_w(event->button.x, event->button.y); + NR::Point const motion_dt(desktop->w2d(motion_w)); + sp_dyna_draw_apply(dc, motion_dt); + /* Remove all temporary line segments */ while (dc->segments) { gtk_object_destroy(GTK_OBJECT(dc->segments->data));