summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorferrieux <ferrieux@users.sourceforge.net>2011-03-03 12:47:36 (GMT)
committerferrieux <ferrieux@users.sourceforge.net>2011-03-03 12:47:36 (GMT)
commit132420d581801947dfb7196a9bccd16e08368036 (patch)
treea7850ae66a5fe0b58d62932b32b4a452ee5a3b65
parentd98b37dc26c701d591a268f135d285496ee417e0 (diff)
downloadtk-132420d581801947dfb7196a9bccd16e08368036.zip
tk-132420d581801947dfb7196a9bccd16e08368036.tar.gz
tk-132420d581801947dfb7196a9bccd16e08368036.tar.bz2
[Bug 3175610]: Incomplete refresh of line items.
-rw-r--r--ChangeLog4
-rw-r--r--generic/tkCanvLine.c5
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 <ferrieux@users.sourceforge.net>
+
+ * generic/tkCanvLine.c: [Bug 3175610]: Incomplete refresh of line items.
+
2011-03-02 Donal K. Fellows <dkf@users.sf.net>
* 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)) {
/*