summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvLine.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-06-10 17:23:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-06-10 17:23:19 (GMT)
commit5f58ec3e771ca3114939aa0fef57282e2458d020 (patch)
tree6d24f00d619bd39fac615d5b62110466ca430002 /generic/tkCanvLine.c
parent44b514f1a5aecb0e19460e81fd6cccdb353d46aa (diff)
parent351ef57494f19d3a4a4a00b0528bcc2bbcc1a82b (diff)
downloadtk-5f58ec3e771ca3114939aa0fef57282e2458d020.zip
tk-5f58ec3e771ca3114939aa0fef57282e2458d020.tar.gz
tk-5f58ec3e771ca3114939aa0fef57282e2458d020.tar.bz2
[Bug 3175610]: Incomplete refresh of line items.
Diffstat (limited to 'generic/tkCanvLine.c')
-rw-r--r--generic/tkCanvLine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c
index 41a3d25..cce3460 100644
--- a/generic/tkCanvLine.c
+++ b/generic/tkCanvLine.c
@@ -1005,10 +1005,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)) {
/*