mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 00:40:40 +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;
|
if not Result then Exit;
|
||||||
APropInfo := GetPropInfo(aPersistent, aFieldName);
|
APropInfo := GetPropInfo(aPersistent, aFieldName);
|
||||||
{property is not published ?}
|
{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);
|
Inc(FUndoLock);
|
||||||
try
|
try
|
||||||
if FUndoCurr > High(FUndoList) then
|
if FUndoCurr > High(FUndoList) then
|
||||||
@ -1685,7 +1680,11 @@ begin
|
|||||||
opType := aOpType;
|
opType := aOpType;
|
||||||
isValid := true;
|
isValid := true;
|
||||||
id := FUndoActId;
|
id := FUndoActId;
|
||||||
propInfo := APropInfo^;
|
if APropInfo <> nil then
|
||||||
|
propInfo := APropInfo^
|
||||||
|
else begin
|
||||||
|
// ToDo: Clear propInfo.
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
Inc(FUndoCurr);
|
Inc(FUndoCurr);
|
||||||
finally
|
finally
|
||||||
|
Loading…
Reference in New Issue
Block a user