Tk Library Source Code

View Ticket
Login
Ticket UUID: 1119460
Title: Insert node with Tree -state disabled causes wish to crash
Type: Bug Version: None
Submitter: skielty Created on: 2005-02-09 17:50:40
Subsystem: bwidget Assigned To: hobbs
Priority: 9 Immediate Severity:
Status: Closed Last Modified: 2005-02-12 02:32:00
Resolution: Fixed Closed By: hobbs
    Closed on: 2005-02-11 19:32:00
Description:
Insert node with Tree -state disabled causes wish to 
crash  -- This is obviously avoidable -- if you don't 
disable. 
The following script to reproduce: 
# info patchlevel 
# 8.4.6
# BWidget v == 1.7 
lappend auto_path [file join [pwd] .. lib bwidget1.7]  
package require BWidget 
set tree [Tree .a] 
pack .a 
$tree configure -state disable 
foreach n {a b c} { 
$tree insert end root $n -text Hello$n -
drawcross allways   
# wish crashes  
} 
# end of script
User Comments: hobbs added on 2005-02-12 02:32:00:
Logged In: YES 
user_id=72656

This was a tkCanvBmap.c issue and has been fixed in 8.4
branch and HEAD.

andreas_kupries added on 2005-02-10 00:57:26:
Logged In: YES 
user_id=75003

Confirmed on Linux with 8.4.9. A nice segmentation fault.

skielty added on 2005-02-10 00:53:19:
Logged In: YES 
user_id=355872

if -drawcross option isn't used -- this doesn't happen -- if it 
is allways it does -- I didn't check the auto or never options