Tk Source Code

Check-in [3ebfb228]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [701927]: extremely long, fat lines not displayed

Converting huge coordinates to the integer bounding box of a canvas item overflowed, either in the conversion itself or when the box was enlarged by the width of the item, so the item was never displayed or found. The coordinates are now clamped to half the int range before the conversion.

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | canvas-bbox-overflow
Files: files | file ages | folders
SHA3-256: 3ebfb228031f74d4fe821aaa7fb65d3995b4584d7000f7d72db82460cbf927f8
User & Date: serhiy.storchaka 2026-09-22 08:51:21.956
References
2026-09-22
08:53 • Ticket [701927ff] extremely long, fat lines not displayed status still Open with 4 other changes artifact: fa5f3802 user: serhiy.storchaka
Context
2026-10-01
21:40
Fix [701927]: extremely long, fat lines not displayed check-in: ae6b1e16 user: jan.nijtmans tags: trunk, main
2026-09-22
08:51
Fix [701927]: extremely long, fat lines not displayed

Converting huge coordinates to the integer bounding box of a canvas item overflowed, either in the conversion itself or when the box was enlarged by the width of the item, so the item was never displayed or found. The coordinates are now clamped to half the int range before the conversion. closed check-in: 3ebfb228 user: serhiy.storchaka tags: canvas-bbox-overflow

2026-09-21
20:10
Merge mac-signal-handlers: allow applications which embed Tk to provide their own exit handler for SIGINT, SIGHUP, or SIGTERM check-in: 70975c94 user: culler tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkCanvArc.c.
Changes to generic/tkCanvBmap.c.
Changes to generic/tkCanvImg.c.
Changes to generic/tkCanvLine.c.
Changes to generic/tkCanvPoly.c.
Changes to generic/tkCanvText.c.
Changes to generic/tkCanvWind.c.
Changes to generic/tkCanvas.h.
Changes to generic/tkRectOval.c.
Changes to generic/tkTrig.c.
Changes to tests/canvas.test.
Changes to tests/constraints.tcl.