mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 16:56:03 +02:00
fixed registering codemakros
git-svn-id: trunk@8087 -
This commit is contained in:
parent
5bf19dd85b
commit
e08d298756
@ -658,7 +658,7 @@ begin
|
||||
i:=Count-1;
|
||||
while (i>=0) do begin
|
||||
Result:=Items[i];
|
||||
if (CompareText(Result.Name,AName)<>0) then exit;
|
||||
if (CompareText(Result.Name,AName)=0) then exit;
|
||||
dec(i);
|
||||
end;
|
||||
Result:=nil;
|
||||
|
@ -137,6 +137,7 @@ begin
|
||||
Result.LongDescription:=LongDescription;
|
||||
Result.OnGetValueProc:=OnGetValueProc;
|
||||
Result.OnGetValueMethod:=OnGetValueMethod;
|
||||
IDECodeMacros.Add(Result);
|
||||
end;
|
||||
|
||||
{ TIDEMacros }
|
||||
|
Loading…
Reference in New Issue
Block a user