diff options
author | dgp@users.sourceforge.net <dgp> | 2011-06-10 17:23:19 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2011-06-10 17:23:19 (GMT) |
commit | 8e371f7ce96b858aea00cc8157929b8ef23a8c8b (patch) | |
tree | 6d24f00d619bd39fac615d5b62110466ca430002 | |
parent | 37efbec5fa981b537885668fdd299c14da535ba9 (diff) | |
parent | 993d12ed8d85de2d8aaffee285d7e1cdf0a5b632 (diff) | |
download | tk-8e371f7ce96b858aea00cc8157929b8ef23a8c8b.zip tk-8e371f7ce96b858aea00cc8157929b8ef23a8c8b.tar.gz tk-8e371f7ce96b858aea00cc8157929b8ef23a8c8b.tar.bz2 |
[Bug 3175610]: Incomplete refresh of line items.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | changes | 2 | ||||
-rw-r--r-- | generic/tkCanvLine.c | 5 |
3 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2011-06-10 Don Porter <dgp@users.sourceforge.net> + + * generic/tkCanvLine.c: [Bug 3175610] Incomplete refresh of line item. + Backport of 2011-03-03 trunk commit from Alexandre Ferrieux. + 2011-06-08 Don Porter <dgp@users.sourceforge.net> * changes: Updated for 8.5.10 release. @@ -6764,4 +6764,6 @@ and -to (porter) 2011-06-07 (bug fix)[2484771] modal dialog settings (hoff, thoyts) +2011-06-10 (bug fix)[3175610] incomplete line item refresh (ferrieux) + --- Released 8.5.10, June 17, 2011 --- See ChangeLog for details --- 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)) { /* |