mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 12:19:26 +02:00
fpvectorial: Adds support for 999 comments in the begining of the file and fixes some typos
git-svn-id: trunk@39628 -
This commit is contained in:
parent
14935d5913
commit
1de5a255f9
@ -533,6 +533,11 @@ begin
|
|||||||
begin
|
begin
|
||||||
Exit;
|
Exit;
|
||||||
end
|
end
|
||||||
|
// Comments can be in the beginning of the file and start with 999
|
||||||
|
else if (IntSectionGroupCode = 999) then
|
||||||
|
begin
|
||||||
|
// nothing to be done, let it add the token
|
||||||
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
raise Exception.Create(Format(
|
raise Exception.Create(Format(
|
||||||
@ -1991,6 +1996,7 @@ begin
|
|||||||
for i := 0 to Tokenizer.Tokens.Count - 1 do
|
for i := 0 to Tokenizer.Tokens.Count - 1 do
|
||||||
begin
|
begin
|
||||||
CurToken := TDXFToken(Tokenizer.Tokens.Items[i]);
|
CurToken := TDXFToken(Tokenizer.Tokens.Items[i]);
|
||||||
|
if (CurToken.Childs = nil) or (CurToken.Childs.Count=0) then Continue;
|
||||||
CurTokenFirstChild := TDXFToken(CurToken.Childs.Items[0]);
|
CurTokenFirstChild := TDXFToken(CurToken.Childs.Items[0]);
|
||||||
|
|
||||||
if CurTokenFirstChild.StrValue = 'HEADER' then
|
if CurTokenFirstChild.StrValue = 'HEADER' then
|
||||||
|
@ -2485,7 +2485,7 @@ end;
|
|||||||
|
|
||||||
procedure TvBlock.CallbackDeleteElement(data, arg: pointer);
|
procedure TvBlock.CallbackDeleteElement(data, arg: pointer);
|
||||||
begin
|
begin
|
||||||
TvFormulaElement(data).Free;
|
TvEntity(data).Free;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TvBlock.Create;
|
constructor TvBlock.Create;
|
||||||
|
Loading…
Reference in New Issue
Block a user