From 461f2eae4f34f31cf9ac7baeace959d3b4628378 Mon Sep 17 00:00:00 2001 From: "dgp@users.sourceforge.net" Date: Fri, 10 Jun 2011 17:18:58 +0000 Subject: [Bug 3175610]: Incomplete refresh of line items. --- ChangeLog | 5 +++++ generic/tkCanvLine.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6584204..a6495e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-06-10 Don Porter + + * generic/tkCanvLine.c: [Bug 3175610] Incomplete refresh of line item. + Backport of 2011-03-03 trunk commit from Alexandre Ferrieux. + 2011-06-06 Don Porter * generic/tkConsole.c: Restore proper NUL output to the [console]. diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c index 0a08922..747e42c 100644 --- a/generic/tkCanvLine.c +++ b/generic/tkCanvLine.c @@ -1031,9 +1031,12 @@ LineInsert(canvas, itemPtr, beforeThis, obj) for(i=beforeThis; icoordPtr[i]; } - if(linePtr->coordPtr) ckfree((char *)linePtr->coordPtr); + if (linePtr->coordPtr) { + ckfree((char *) linePtr->coordPtr); + } linePtr->coordPtr = new; - linePtr->numPoints = (length + objc)/2; + length += objc; + linePtr->numPoints = length / 2; if ((length>3) && (state != TK_STATE_HIDDEN)) { /* -- cgit v0.12