diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-10-16 09:39:52 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-10-16 09:39:52 +0000 |
| commit | 0aa9ccce32f60c55b35348fe14da33950ca4517f (patch) | |
| tree | 2a35a4d3cf215c5d8e88729165685e1a7dd666c1 /src | |
| parent | Update to trunk (diff) | |
| download | inkscape-0aa9ccce32f60c55b35348fe14da33950ca4517f.tar.gz inkscape-0aa9ccce32f60c55b35348fe14da33950ca4517f.zip | |
Update motion redraw of bsplines
(bzr r11950.1.183)
Diffstat (limited to 'src')
| -rw-r--r-- | src/pen-context.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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; |
