Tk Source Code

View Ticket
Login
Ticket UUID: 9b23b6ca23881e6b80fe2cf85afc349e243d99e7
Title: [tk print] canvas with smooth lines crashes on windows
Type: Bug Version: trunk
Submitter: emiliano Created on: 2025-04-27 20:26:03
Subsystem: -- New Commands Assigned To: fvogel
Priority: 5 Medium Severity: Critical
Status: Closed Last Modified: 2025-04-29 20:55:09
Resolution: Fixed Closed By: fvogel
    Closed on: 2025-04-29 20:55:09
Description:
[tk print] canvas with smooth lines crashes on windows

(bin) 1 % pack [canvas .c]
(bin) 2 % .c create line 10 10 100 50 10 90 -smooth true
1
(bin) 3 % tk print .c
(program crashes)

This only happens with -smooth (true|bezier)
User Comments: fvogel added on 2025-04-29 20:55:09:
Now merged. Thanks again!

fvogel added on 2025-04-28 05:54:50:

Committed in a bugfix branch in [d006bbc474]. Thanks!


emiliano added on 2025-04-27 21:16:02:
Attached patch fix the issue

fvogel added on 2025-04-27 21:13:03:
Crashes in tkWinGDI.c:609:

    *bpointptr = *bpoints;

because bpointptr is NULL.

Attachments: