| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #729
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | Fl_Browser muffs swap of different sized lines |
Version: | 1.1.6 |
Created By: | wilson.afn |
Assigned To: | mike |
Fix Version: | 1.1.7 (SVN: v4046) |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | wilson.afn 09:16 Feb 24, 2005 |
| Linux (FC3, all yumed up).
To see this problem, run demo/browser. Scroll down and click-select line 44, "Large". Continue a little further down and Cntl-click-select line 46, "Small". Then click the "Swap" button. The two entries are indeed interchanged, but the ones between suffer some collateral damage.
Perhaps ::swap(..) should check the height of the items and fall back on ::redraw_lines() if they are different? | |
|
#2 | mike 12:19 Feb 24, 2005 |
| Fixed in Subversion repository.
I updated the code to only call redraw_lines() - the previous optimization was questionable (it doesn't really optimize much since everything is redrawn anyways) and the overhead of checking the item_height() of each line is greater than just redrawing the visible list. | |
[ Return to Bugs & Features ]
|
| |