IDE,lazbuild: update package main source file if directives changed, bug #29391

git-svn-id: trunk@51273 -
This commit is contained in:
mattias 2016-01-13 17:27:34 +00:00
parent c0b5c2d5a1
commit 9a795c577c

View File

@ -5122,9 +5122,9 @@ begin
exit;
end;
// ignore comments
OldShortenSrc:=CodeToolBoss.ExtractCodeWithoutComments(CodeBuffer);
OldShortenSrc:=CodeToolBoss.ExtractCodeWithoutComments(CodeBuffer,true);
NewShortenSrc:=CleanCodeFromComments(Src,
CodeToolBoss.GetNestedCommentsFlagForFile(CodeBuffer.Filename));
CodeToolBoss.GetNestedCommentsFlagForFile(CodeBuffer.Filename),true);
// ignore case and spaces
if CompareTextIgnoringSpace(OldShortenSrc,NewShortenSrc,false)=0 then begin
Result:=mrOk;