STR #1265

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 ]

STR #1265

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:4 - High, e.g. key functionality not working
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:Fl_Browser::swap() modifying cacheline but not cache
Created By:smith1
Assigned To:matt
Fix Version:1.1-current (SVN: v5095)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files

Trouble Report Comments:

Name/Time/Date Text top right image
#1 smith1
04:56 May 09, 2006
I have run across a problem using Fl_Browser() where when I sort the items (using Fl_Browser::swap) after inserting them, I get improper behavior - that is I click on an item and value() returns 0.

I believe that I see the cause of the problem.

Fl_Browser::swap sets cacheline to 0, but does not set cache to NULL.
So if the first try at a selection gets a match on cache and it will then return the line of that match as 0 (cacheline = 0).
#2 matt
03:47 May 10, 2006
Fixed in Subversion repository.

OP, please verify my fix in the current SVN and post back here if you found it fixed and if you found any new erratic behavior.
#3 matt
03:54 May 10, 2006
If this bug was not resolved, please send a reply mail and I will reopen the issue.  
bottom left image   bottom right image

Return to Bugs & Features ]


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