|
|
Reporter | cecheto | Assigned To | AHUser | |
---|
Priority | normal | Severity | minor | Reproducibility | have not tried |
---|
Status | resolved | Resolution | fixed | |
---|
Product Version | 3.33 | |
---|
Target Version | | Fixed in Version | 3.40 | |
---|
|
|
Summary | 0005140: Selecting a Thumbnail in TThumbView generates a List index out of bound after EmptyList call |
---|
Description | If 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 Information | This 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.
|
---|
Tags | No tags attached. |
---|
|
|