From 5dee771e67b0d6589bdc36026e6fc7994a66fe17 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Tue, 8 Jul 2008 20:29:15 +0000 Subject: [PATCH] fix calligraphy and erasertools bugs introduced by rev19197 --- src/dyna-draw-context.cpp | 4 ++-- src/eraser-context.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); -- 2.30.2