diff options
author | dgp <dgp@users.sourceforge.net> | 2011-06-10 20:14:39 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-06-10 20:14:39 (GMT) |
commit | 4348b1d1a803b524fd852a46fddaf6572f546827 (patch) | |
tree | aeffdde9ead5b6c4becdeee9212a8c316ebd3273 /generic/tkCanvLine.c | |
parent | 1047d6425a9d9c79430c35804acaeee884488f1e (diff) | |
parent | 4786156306bcb3c0800108b508b32ad99332fd54 (diff) | |
download | tk-4348b1d1a803b524fd852a46fddaf6572f546827.zip tk-4348b1d1a803b524fd852a46fddaf6572f546827.tar.gz tk-4348b1d1a803b524fd852a46fddaf6572f546827.tar.bz2 |
Merge to RC branch
Diffstat (limited to 'generic/tkCanvLine.c')
-rw-r--r-- | generic/tkCanvLine.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c index d2954f2..cce3460 100644 --- a/generic/tkCanvLine.c +++ b/generic/tkCanvLine.c @@ -9,8 +9,6 @@ * * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. - * - * RCS: @(#) $Id: tkCanvLine.c,v 1.22.2.1 2010/08/11 09:39:08 dkf Exp $ */ #include <stdio.h> @@ -1007,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)) { /* |