* Avoid double begin/end

git-svn-id: trunk@46889 -
This commit is contained in:
michael 2020-09-18 14:30:39 +00:00
parent de180d7656
commit f8b5c81b8b

View File

@ -1256,6 +1256,9 @@ begin
if DoBeginEnd then
AddLn('begin');
IncIndent;
if AIfElse.IfBranch is TPasImplBeginBlock then
WriteImplBlock(TPasImplBeginBlock(AIfElse.IfBranch))
else
WriteImplElement(AIfElse.IfBranch, False);
DecIndent;
if DoBeginEnd then