| Ticket UUID: | 3122382 | |||
| Title: | findTabs returns 0 and callers fail | |||
| Type: | Bug | Version: | None | |
| Submitter: | tombert | Created on: | 2010-11-29 15:10:11 | |
| Subsystem: | tklib :: tablelist | Assigned To: | nemethi | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2010-12-02 19:59:14 | |
| Resolution: | None | Closed By: | tombert | |
| Closed on: | 2010-12-02 12:59:14 | |||
| Description: |
The first loop from tablelist::findTabs is able to return 0 without providing data to idx1Name and idx2Name ... thus commands like tablelist::addActiveTag will crash with error "can't read tabIdx1: no such variable" seen in version tklib0.5 thx | |||
| User Comments: |
tombert added on 2010-12-02 19:58:57:
I've updated to HEAD ... currently no problem ... I propose to close the bug. tombert added on 2010-11-30 05:17:28: ... hmmm ... so when it happens a second time I'll come back here ... nemethi added on 2010-11-30 05:10:41: A closer look at the body of the tablelist::addActiveTag proc in the distribution file tablelistBind.tcl reveals that in this case findTabs does assign a valid value to both arguments tabIdx1 and tabIdx2. Actually, the additional condition making this sure is that data(dispId) doesn't exist (i.e., that all newly inserted rows have already been displayed). This is, however, checked in tablelistWidget.tcl, before invoking the addActiveTag procedure. tombert added on 2010-11-30 04:45:57: I was adding a second row to my table while hovering with the mouse over it ... maybe it's related to the tooltip I'am using ... I'am using it without a problem for a year now and can't reproduce - so I only had a look into the code and made a few assumptions ... nemethi added on 2010-11-30 04:34:45: The latest CVS source is identical to the one contained in the most recent Tablelist version 5.2 (see www.nemethi.de). I am somewhat surprised to hear that you found this bug in Tablelist 4.10.1. Could you provide a simple script helping me to reproduce the problem? Also: Does your script behave as expected when using Tablelist 5.2? tombert added on 2010-11-30 04:13:47: The package index tells 4.10.1 I've checked the CVS sources now ... there have been a lot of changes. My problem was only that I wanted to get a tagged version. So my question: Is it safe to take the latest CVS source? thx nemethi added on 2010-11-30 03:35:31: Could you please provide the exact Tablelist version? The official tklib5.0 release includes Tablelist 10.0.1, but I am not sure you refer to the *initial* tklib version 5.0, because that is already nearly two years old. This bug was present in some earlier Tablelist releases, but was fixed in version 4.7. Unfortunately, it appeared again in Tablelist 5.0, but was fixed in the most recent version 5.2. For this reason, please run your script with Tablelist 5.2 and let me know whether it still exhibits the problem (it shouldn't). | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki