FLTK logo

STR #729

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.