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:
juha 2016-07-02 09:27:37 +00:00
parent 5416af6a20
commit 3b284c4674

View File

@ -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