Bwidget Source Code
View Ticket
Not logged in
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.
Ticket UUID: a4cbba655d8328c9768b38400515fa09a8fff417
Title: NoteBook: error in _draw_page: $data($page,width) not existing
Type: Bug Version: trunk
Submitter: oehhar Created on: 2013-08-14 17:36:45
Subsystem: bwidget 1.x Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2013-09-02 09:42:11
Resolution: Fixed Closed By: oehhar
    Closed on: 2013-09-02 09:42:11

A customer reported the following bug trace:

> can't read "data(1,width)": no such element in array
>     while executing
> "expr {$xd + $data($page,width)}"
>     (procedure "_draw_page" line 15)
>     invoked from within
> "_draw_page $path $page 0"
>     (procedure "NoteBook::_redraw" line 10)
>     invoked from within
> "NoteBook::_redraw $path"
>     (procedure "NoteBook::_resize" line 13)
>     invoked from within
> "NoteBook::_resize .fm.frame.ft.p.fa.n"
>     (command bound to event)
> --Traceback--
> INNER:invokeStk1 .fm.frame.ft.p.fp.t.hdr.t.f.c3 create image 0 1 -anchor nw -image -tags lightLineDn
> CALL:createArrows .fm.frame.ft.p.fp.t.hdr.t.f.c3 7 4 flat

IMHO the _Resize event got in before initialisation got completed. A test patch is in a branch with the id of this ticket (not jet assigned)