View Issue Details

IDProjectCategoryView StatusLast Update
0005140JEDI VCL00 JVCL Componentspublic2011-06-10 16:10
ReportercechetoAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version3.33 
Target VersionFixed in Version3.40 
Summary0005140: Selecting a Thumbnail in TThumbView generates a List index out of bound after EmptyList call
DescriptionIf you have a populated TThumbView with a thumbnail selected, you clear all contents using EmptyList method and you insert new thumbnails, and the selected one was a higher index of the nre count, when you click on a new image you get a List Index out of bounds.
Additional InformationThis happens because the Selected property is not cleared when the EmptyList is executed and the SetSelected method tries clearing the highlighting of the previously selected thumbnail, and can be solved adding a "FSelected := -1" in the EmptyList method.
Also checking that the FSelected value in the SetSelected method could be an interesting correction. It only needs to be added "and (FSelected < Count)" in the "if (FSelected <> -1) then" line.

TagsNo tags attached.

Activities

obones

2010-03-08 16:06

administrator   ~0017252

Please try with the latest version of the JVCL and let us know if it is still here

AHUser

2010-05-16 15:48

developer   ~0017396

Fixed in SVN revision 12774

Issue History

Date Modified Username Field Change
2010-01-26 12:46 cecheto New Issue
2010-03-08 16:06 obones Note Added: 0017252
2010-03-08 16:06 obones Status new => feedback
2010-05-16 15:48 AHUser Note Added: 0017396
2010-05-16 15:48 AHUser Status feedback => resolved
2010-05-16 15:48 AHUser Fixed in Version => Daily / SVN
2010-05-16 15:48 AHUser Resolution open => fixed
2010-05-16 15:48 AHUser Assigned To => AHUser
2011-06-10 16:10 obones Fixed in Version Daily / SVN => 3.40