LCL-Win32: Throw error when a sorted TCheckListBox item is replaced. Issue #30004, patch from Michl.

git-svn-id: trunk@53100 -
This commit is contained in:
juha 2016-10-12 11:05:07 +00:00
parent 7fc07f3753
commit 897ddc96eb
2 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,7 @@ uses
Translations, Controls, Buttons,
LCLIntf, LclProc, LazUTF8, LCLType, LMessages,
Forms, Dialogs, GraphMath, GraphType, InterfaceBase,
StdCtrls, SysUtils, Win32Def, Graphics, Menus, CommCtrl, ComCtrls,
StdCtrls, SysUtils, RtlConsts, Win32Def, Graphics, Menus, CommCtrl, ComCtrls,
MultiMon, Themes{, Win32Debug};
const

View File

@ -238,6 +238,8 @@ var
lSelected: Boolean;
AData: Pointer;
begin
if Sorted then
Error(SSortedListError,0);
// remember selection
lSelected := False;
lItemIndex := -1;