mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 15:20:49 +02:00
LCL: Set ListView.Selection always when working with OwnerData. Issue #30320, patch from Rolf Wetjen.
git-svn-id: trunk@52595 -
This commit is contained in:
parent
5416af6a20
commit
3b284c4674
@ -1557,7 +1557,7 @@ var
|
||||
begin
|
||||
if (AValue<>nil) and (AValue.ListView<>Self) then
|
||||
raise Exception.Create('Item does not belong to this listview');
|
||||
if FSelected = AValue then Exit;
|
||||
if (not FOwnerData) and (FSelected = AValue) then Exit;
|
||||
//DebugLn('TCustomListView.SetSelection FSelected=',dbgs(FSelected));
|
||||
if AValue = nil then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user