ListView - can't set image index if previous was empty
Original Reporter info from Mantis: Dibo
-
Reporter name: Krzysztof Dibowski
Original Reporter info from Mantis: Dibo
- Reporter name: Krzysztof Dibowski
Description:
Hi,
I have problem with changing item image index at runtime. If item had some image index at creation time, then everything works fine. But if image index is by default -1, then I sometimes can't set image index. I attached demo. To reproduce problem:
- Run program
- Item in first column doesn't have image
- Button click and double click on listview call this same event which set some image index. But clicking on button doesn't work and double click on list view work only on second time (or on first time if button was clicked first)
If you set some icon to first column (on design time) then everythin works fine. Something is wrong with refreshing
Regards
Additional information:
Ubuntu 12.04 64bit, GTK2
Lazarus 1.1 (revision 38083 CodeTyphon 2.80), but also tested on Lazarus 1.0 and from SVN revision too
FPC 2.7.1 from SVN
Mantis conversion info:
- Mantis ID: 22811
- Version: 1.0.0
- Fixed in revision: 44698 (#e0fa77db)