chelper: a small fix to prevent writting the same comment twice

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1271 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
skalogryz
2010-08-08 15:25:28 +00:00
parent bf781d24bc
commit 2f5829eff6

View File

@ -550,7 +550,7 @@ var
begin begin
cmt:=FindCommentForLine( Breaker.LineNumber(AOffset)); cmt:=FindCommentForLine( Breaker.LineNumber(AOffset));
if Assigned(cmt) then begin if Assigned(cmt) then begin
LastOffset:=AOffset; LastOffset:=cmt.Offset;
wr.W(' '); wr.W(' ');
WriteCommentToPas(cmt); WriteCommentToPas(cmt);
end else end else