Bwidget Source Code
View Ticket
Not logged in
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
Description: (text/x-fossil-wiki)
A customer reported the following bug trace:
<verbatim>
> 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 lightLineDn.fm.frame.ft.p.fp.t.hdr.t.f.c3 -tags lightLineDn
> CALL:createArrows .fm.frame.ft.p.fp.t.hdr.t.f.c3 7 4 flat
</verbatim>

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)