mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 20:50:18 +02:00
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:
parent
001970dd85
commit
fe55929cd6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user