Designer: an attempt to fix a Undo-bug with non-visible components. Now the index for FUndoList goes over. :(

git-svn-id: trunk@46466 -
This commit is contained in:
juha 2014-10-07 20:53:26 +00:00
parent 001970dd85
commit fe55929cd6

View File

@ -1629,11 +1629,6 @@ begin
if not Result then Exit;
APropInfo := GetPropInfo(aPersistent, aFieldName);
{property is not published ?}
if APropInfo = nil then
begin
DebugLn('TDesigner.AddUndoAction: error ',dbgsName(aPersistent),' property "',AFieldName,'". Property is not published ? ');
exit;
end;
Inc(FUndoLock);
try
if FUndoCurr > High(FUndoList) then
@ -1685,7 +1680,11 @@ begin
opType := aOpType;
isValid := true;
id := FUndoActId;
propInfo := APropInfo^;
if APropInfo <> nil then
propInfo := APropInfo^
else begin
// ToDo: Clear propInfo.
end;
end;
Inc(FUndoCurr);
finally