summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvPoly.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/tkCanvPoly.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/tkCanvPoly.c')
-rw-r--r--generic/tkCanvPoly.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkCanvPoly.c b/generic/tkCanvPoly.c
index 61859c4..4a8a125 100644
--- a/generic/tkCanvPoly.c
+++ b/generic/tkCanvPoly.c
@@ -1720,7 +1720,7 @@ GetPolygonIndex(
Tcl_Size count = 2*(polyPtr->numPoints - polyPtr->autoClosed);
if (TCL_OK == TkGetIntForIndex(obj, (INT_MAX - 1) - ((INT_MAX) % count), 1, &idx)) {
- if (idx == TCL_INDEX_NONE) {
+ if (idx < 0) {
idx = 0;
} else if (idx >= INT_MAX - ((INT_MAX) % count)) {
idx = count;