Tk Source Code

View Ticket
Login
Ticket UUID: 1e0db2400c4420ed4e555c5b461cc2ebd0c8b24d
Title: canvas rchars leaves artifacts when line bounding box gets smaller
Type: Bug Version: 8.6.6
Submitter: anonymous Created on: 2017-05-02 04:22:31
Subsystem: 05. Canvas Items Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2017-09-24 15:01:20
Resolution: Fixed Closed By: fvogel
    Closed on: 2017-09-24 15:01:20
Description:
code to cause problem:

package require Tk
destroy .c
pack [canvas .c -width 400 -height 300]
.c create line 100 100 200 200 -fill red -tags xx
update
.c rchars xx 0 1 "150 100"

The segment of the original line outside the bounding box for the updated line remains on the canvas. The window manager may force a redraw when obscured and exposed, (fvwm on X11 on slackware linux 4.1.14 works) but not in all cases, see comments on comp.lang.tcl for 2017-may-1

This looks like a problem mentioned as solved in the comments for ticket 2157629 for TIP #97 in late October or November of 2008. If it was, it's back.

Dave Bruchie
User Comments: fvogel added on 2017-09-24 15:01:20:
Merged to core-8-6-branch and trunk.

fvogel added on 2017-09-17 20:02:12:

This is the same ticket as [2899685], but for the rchars command this time.

The same fix can be applied, see branch bug-1e0db2400c.