diff options
author | ferrieux <ferrieux@noemail.net> | 2011-03-03 12:47:36 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@noemail.net> | 2011-03-03 12:47:36 (GMT) |
commit | e7983ff609e5006e26f531a1ef218718f2b45961 (patch) | |
tree | a7850ae66a5fe0b58d62932b32b4a452ee5a3b65 /generic/tkCanvLine.c | |
parent | 7eeca70e3bea938f217c463f327463505123b7c4 (diff) | |
download | tk-e7983ff609e5006e26f531a1ef218718f2b45961.zip tk-e7983ff609e5006e26f531a1ef218718f2b45961.tar.gz tk-e7983ff609e5006e26f531a1ef218718f2b45961.tar.bz2 |
[Bug 3175610]: Incomplete refresh of line items.
FossilOrigin-Name: 6ec19a462eb756ddc5faa63cb72b02b5d1798d19
Diffstat (limited to 'generic/tkCanvLine.c')
-rw-r--r-- | generic/tkCanvLine.c | 5 |
1 files changed, 3 insertions, 2 deletions
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)) { /* |