LCL: TListView update FSelectedIdx in multiselect mode too. issue #21389

git-svn-id: trunk@35614 -
This commit is contained in:
zeljko 2012-02-28 19:11:20 +00:00
parent 3ee12b8bbf
commit 1e2b5b21f7

View File

@ -356,8 +356,7 @@ begin
Include(FFlags,lffSelectedValid);
if OwnerData then
begin
if (MultiSelect and (FSelectedIdx = -1)) or not MultiSelect then
FSelectedIdx:=nm^.iItem;
FSelectedIdx:=nm^.iItem;
end;
//DebugLn('TCustomListView.CNNotify FSelected=',dbgs(FSelected));
DoSelectItem(Item, True);