mirror of https://gitlab.com/basile.b/dexed.git
position was not found if source file length was even.
This commit is contained in:
parent
943332913b
commit
94b8194f85
|
@ -488,10 +488,9 @@ begin
|
||||||
result.x := 0;
|
result.x := 0;
|
||||||
result.y := 0;
|
result.y := 0;
|
||||||
ident := '';
|
ident := '';
|
||||||
i := 0;
|
i := 1;
|
||||||
while (true) do
|
while (true) do
|
||||||
begin
|
begin
|
||||||
inc(i);
|
|
||||||
if i > length(aMessage) then exit;
|
if i > length(aMessage) then exit;
|
||||||
if aMessage[i] = '.' then
|
if aMessage[i] = '.' then
|
||||||
begin
|
begin
|
||||||
|
@ -513,7 +512,7 @@ begin
|
||||||
end;
|
end;
|
||||||
if aMessage[i] = ')' then
|
if aMessage[i] = ')' then
|
||||||
begin
|
begin
|
||||||
result.y := strToInt(ident);
|
result.y := strToIntDef(ident, -1);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue