IDE: Fix a logic error in a624d0c027. Issue #39958.

This commit is contained in:
Juha 2022-10-15 11:59:15 +03:00
parent d65a845812
commit 1566610acf

View File

@ -848,7 +848,7 @@ procedure TProjectResources.UpdateLrsCodeBuffer;
var
CodeBuf: TCodeBuffer;
begin
if not (FLrsIncludeAllowed or HasLazarusResources) then Exit;
if not (FLrsIncludeAllowed and HasLazarusResources) then Exit;
CodeBuf := CodeToolBoss.CreateFile(lrsFileName);
CodeBuf.Source := FLazarusResources.Text;
end;