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

git-svn-id: branches/fixes_1_6@51274 -
This commit is contained in:
mattias 2016-01-13 17:27:49 +00:00
parent d0724eda82
commit 51c015b7b6

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;