From 3b284c4674dc013e3bd30455fe63530837b4bf05 Mon Sep 17 00:00:00 2001 From: juha Date: Sat, 2 Jul 2016 09:27:37 +0000 Subject: [PATCH] LCL: Set ListView.Selection always when working with OwnerData. Issue #30320, patch from Rolf Wetjen. git-svn-id: trunk@52595 - --- lcl/include/customlistview.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/include/customlistview.inc b/lcl/include/customlistview.inc index dee24bedf6..6c92538a12 100644 --- a/lcl/include/customlistview.inc +++ b/lcl/include/customlistview.inc @@ -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