From 0aa9ccce32f60c55b35348fe14da33950ca4517f Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Cenoz Date: Wed, 16 Oct 2013 11:39:52 +0200 Subject: Update motion redraw of bsplines (bzr r11950.1.183) --- src/pen-context.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/pen-context.cpp') diff --git a/src/pen-context.cpp b/src/pen-context.cpp index 0d4b5df7e..e251c1125 100644 --- a/src/pen-context.cpp +++ b/src/pen-context.cpp @@ -733,10 +733,15 @@ static gint pen_handle_motion_notify(SPPenContext *const pc, GdkEventMotion cons } //BSpline //Lanzamos la función "bspline_spiro_motion" al moverse el ratón o cuando se para. - if ( Geom::LInfty( event_w - pen_drag_origin_w ) > tolerance || mevent.time == 0) { + if(pc->bspline){ bspline_spiro_color(pc); bspline_spiro_motion(pc,(mevent.state & GDK_SHIFT_MASK)); - pen_drag_origin_w = event_w; + }else{ + if ( Geom::LInfty( event_w - pen_drag_origin_w ) > tolerance || mevent.time == 0) { + bspline_spiro_color(pc); + bspline_spiro_motion(pc,(mevent.state & GDK_SHIFT_MASK)); + pen_drag_origin_w = event_w; + } } //BSpline End return ret; -- cgit v1.2.3