summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvLine.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-06-10 20:14:39 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-06-10 20:14:39 (GMT)
commit4348b1d1a803b524fd852a46fddaf6572f546827 (patch)
treeaeffdde9ead5b6c4becdeee9212a8c316ebd3273 /generic/tkCanvLine.c
parent1047d6425a9d9c79430c35804acaeee884488f1e (diff)
parent4786156306bcb3c0800108b508b32ad99332fd54 (diff)
downloadtk-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.c7
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)) {
/*