<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Partly related to issue<div> <a href="https://bugs.freepascal.org/view.php?id=38565">https://bugs.freepascal.org/view.php?id=38565</a></div><div><br></div><div>I changed function TListItem.GetState to use enum TListItemState directly instead of casting it to an integer.</div><div>It allows to remove many ugly typecasts.</div><div>I don't see any problems caused by it. None of the properties are published, thus component streaming is not a problem.</div><div>However I don't know TListView very well, somebody may spot a potential problem.</div><div>So, is it safe to apply? Please see the attached patch.</div><div><br></div><div>Juha</div><div><br></div></div></div></div></div>