View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004459||New issues||Client||public||2009-06-14 22:15||2014-11-24 16:09|
|Status||closed||Resolution||unable to reproduce|
|Summary||0004459: guiGridListSetItemData is reset when guiGridListSetItemText is called after it on the same column|
Setting data first, then setting text (on the same column):
Now the other way around:
Result (as it should be):
|Tags||No tags attached.|
This is not the fault of SetItemText, rather you can leave that out and it'll still return nil.
The thing is that the Item on the row/column is created when you call SetItemText, and thus every call with SetItemData/GetItemData will work afterwards. As long as you did not do that, there's no such field in the gridlist, thus the call will fail.
It might be a bit unfortunate that SetItemData always returns true, although it did not set any data.
No test script + very uncommon CEGUI issue + might not even be an issue.