LCL, grids: check editor unlock count, fix issue #26191

git-svn-id: trunk@46157 -
This commit is contained in:
jesus 2014-09-08 05:28:02 +00:00
parent 97bd4fbe07
commit 380a2eecbc

View File

@ -7093,7 +7093,10 @@ end;
procedure TCustomGrid.UnLockEditor;
begin
Dec(FEditorHidingCount);
if FEDitorHidingCount>0 then
Dec(FEditorHidingCount)
else
DebugLn('WARNING: unpaired Unlock Editor');
{$ifdef dbgGrid}DebugLn('==< LockEditor: ', dbgs(FEditorHidingCount)); {$endif}
end;