Tk Library Source Code

View Ticket
Login
Ticket UUID: 1879622
Title: tooltip::show fails when window has been destroyed
Type: Bug Version: None
Submitter: ramsan Created on: 2008-01-25 12:41:30
Subsystem: tklib :: tooltip Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2008-03-13 03:39:59
Resolution: Fixed Closed By: hobbs
    Closed on: 2008-03-12 20:39:59
Description:
In function: ::tooltip::show

It begins:

    set we [winfo exists $w]
    set wc [string match $w* [eval [list winfo containing] \
                                  [winfo pointerxy $w]]]
    set wm [string equal [winfo class $w] "Menu"]
    if {!$we || (!$wm && !$wc)} {
        return
    }

should be:

    set we [winfo exists $w]
    if {!$we } { return }
    set wc [string match $w* [eval [list winfo containing] \
                                  [winfo pointerxy $w]]]
    set wm [string equal [winfo class $w] "Menu"]
    if {!$wm && !$wc} {
        return
    }
User Comments: hobbs added on 2008-03-13 03:39:59:
Logged In: YES 
user_id=72656
Originator: NO

fixed for 1.4.1.