From e7983ff609e5006e26f531a1ef218718f2b45961 Mon Sep 17 00:00:00 2001 From: ferrieux Date: Thu, 3 Mar 2011 12:47:36 +0000 Subject: [Bug 3175610]: Incomplete refresh of line items. FossilOrigin-Name: 6ec19a462eb756ddc5faa63cb72b02b5d1798d19 --- ChangeLog | 4 ++++ generic/tkCanvLine.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8ebb514..afcabb3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-03-03 Alexandre Ferrieux + + * generic/tkCanvLine.c: [Bug 3175610]: Incomplete refresh of line items. + 2011-03-02 Donal K. Fellows * doc/tk_mac.n (new file): Description of OSX-specific functionality diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c index c06c398..34cdfae 100644 --- a/generic/tkCanvLine.c +++ b/generic/tkCanvLine.c @@ -1007,10 +1007,11 @@ LineInsert( newCoordPtr[i+objc] = linePtr->coordPtr[i]; } if (linePtr->coordPtr) { - ckfree((char *) linePtr->coordPtr); + ckfree((char *) linePtr->coordPtr); } linePtr->coordPtr = newCoordPtr; - linePtr->numPoints = (length + objc)/2; + length += objc ; + linePtr->numPoints = length / 2; if ((length > 3) && (state != TK_STATE_HIDDEN)) { /* -- cgit v0.12