mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 22:20:25 +02:00
TControl.EnableAutoSizing: improved exception
git-svn-id: trunk@26061 -
This commit is contained in:
parent
850ce0c034
commit
9e959c5e20
@ -4767,7 +4767,8 @@ begin
|
||||
CheckReason;
|
||||
{$ENDIF}
|
||||
|
||||
if FAutoSizingLockCount<=0 then RaiseGDBException('TControl.EnableAutoSizing');
|
||||
if FAutoSizingLockCount<=0 then
|
||||
raise Exception.Create('TControl.EnableAutoSizing '+DbgSName(Self)+': missing DisableAutoSizing');
|
||||
|
||||
dec(FAutoSizingLockCount);
|
||||
//DebugLn([Space(FAutoSizingLockCount*2),'TControl.EnableAutoSizing ',DbgSName(Self),' ',FAutoSizingLockCount]);
|
||||
|
Loading…
Reference in New Issue
Block a user