Tk Library Source Code

View Ticket
Login
Ticket UUID: 1166235
Title: NoteBook delete reindexing
Type: Bug Version: None
Submitter: altano Created on: 2005-03-18 21:12:17
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-06-30 21:14:07
Resolution: Out of Date Closed By: oehhar
    Closed on: 2009-06-30 14:14:07
Description:
version 1.7

In NoteBook::delete

    foreach tmpPage [lrange $data(pages) $newPos end] {
set pageToIndex($page) $newPos

needs to be 

    foreach tmpPage [lrange $data(pages) $newPos end] {
set pageToIndex($tmpPage) $newPos
User Comments: oehhar added on 2009-06-30 21:14:07:
This code is not there any more.

kjnash added on 2005-04-02 23:11:19:
Logged In: YES 
user_id=991282

I've run into the same bug:  if a tabbed page is deleted
from the notebook, its records of pages and indices are
corrupted.

Operations like adding or removing further pages may fail,
sometimes with bgerror.  Pages may be mapped to the same
index in the notebook, and gaps appear in the tabs.

Thanks for the fix.