summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvLine.c
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-04-18 12:47:38 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-04-18 12:47:38 (GMT)
commit63d55485eb9be2e21c911bdc78e0367d8d7ecb2c (patch)
tree80450d56ce49849889e9233fac6643a3589623a0 /generic/tkCanvLine.c
parentc6eb4388bed08a7f24b9de6cd12d1500cab024ca (diff)
downloadtk-63d55485eb9be2e21c911bdc78e0367d8d7ecb2c.zip
tk-63d55485eb9be2e21c911bdc78e0367d8d7ecb2c.tar.gz
tk-63d55485eb9be2e21c911bdc78e0367d8d7ecb2c.tar.bz2
Missed more than a few TIP 660 changes. Possibly more to come.
Diffstat (limited to 'generic/tkCanvLine.c')
-rw-r--r--generic/tkCanvLine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c
index 4ccc27d..c94571d 100644
--- a/generic/tkCanvLine.c
+++ b/generic/tkCanvLine.c
@@ -1876,7 +1876,7 @@ GetLineIndex(
const char *string;
if (TCL_OK == TkGetIntForIndex(obj, 2*linePtr->numPoints - 1, 1, &idx)) {
- if (idx == TCL_INDEX_NONE) {
+ if (idx < 0) {
idx = 0;
} else if (idx > (2*(Tcl_Size)linePtr->numPoints)) {
idx = 2*linePtr->numPoints;