From: johanengelen Date: Tue, 8 Jul 2008 20:29:15 +0000 (+0000) Subject: fix calligraphy and erasertools bugs introduced by rev19197 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5dee771e67b0d6589bdc36026e6fc7994a66fe17;p=inkscape.git fix calligraphy and erasertools bugs introduced by rev19197 --- diff --git a/src/dyna-draw-context.cpp b/src/dyna-draw-context.cpp index 4e7c855ca..1d6538aa7 100644 --- a/src/dyna-draw-context.cpp +++ b/src/dyna-draw-context.cpp @@ -1046,11 +1046,11 @@ accumulate_calligraphic(SPDynaDrawContext *dc) dc->accumulated->append(dc->cal1, false); - add_cap(dc->accumulated, (*dc_cal1_lastseg)[3], (*rev_cal2_firstseg)[3], dc->cap_rounding); + add_cap(dc->accumulated, (*dc_cal1_lastseg)[3], (*rev_cal2_firstseg)[0], dc->cap_rounding); dc->accumulated->append(rev_cal2, true); - add_cap(dc->accumulated, (*rev_cal2_lastseg)[3], (*dc_cal1_firstseg)[3], dc->cap_rounding); + add_cap(dc->accumulated, (*rev_cal2_lastseg)[3], (*dc_cal1_firstseg)[0], dc->cap_rounding); dc->accumulated->closepath(); diff --git a/src/eraser-context.cpp b/src/eraser-context.cpp index 6cfd915ef..8c542ebd3 100644 --- a/src/eraser-context.cpp +++ b/src/eraser-context.cpp @@ -888,11 +888,11 @@ accumulate_eraser(SPEraserContext *dc) dc->accumulated->append(dc->cal1, FALSE); - add_cap(dc->accumulated, (*dc_cal1_lastseg)[2], (*dc_cal1_lastseg)[3], (*rev_cal2_firstseg)[3], (*rev_cal2_firstseg)[1], dc->cap_rounding); + add_cap(dc->accumulated, (*dc_cal1_lastseg)[2], (*dc_cal1_lastseg)[3], (*rev_cal2_firstseg)[0], (*rev_cal2_firstseg)[1], dc->cap_rounding); dc->accumulated->append(rev_cal2, TRUE); - add_cap(dc->accumulated, (*rev_cal2_lastseg)[2], (*rev_cal2_lastseg)[3], (*dc_cal1_firstseg)[3], (*dc_cal1_firstseg)[1], dc->cap_rounding); + add_cap(dc->accumulated, (*rev_cal2_lastseg)[2], (*rev_cal2_lastseg)[3], (*dc_cal1_firstseg)[0], (*dc_cal1_firstseg)[1], dc->cap_rounding); dc->accumulated->closepath();