mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Get only real Lazarus revision
This commit is contained in:
parent
80e29f1298
commit
145bd7e584
1 changed files with 6 additions and 2 deletions
|
|
@ -451,10 +451,14 @@ begin
|
|||
end;
|
||||
|
||||
function GetLazarusVersion: String;
|
||||
var
|
||||
I: Integer = 1;
|
||||
begin
|
||||
Result:= lazVersion;
|
||||
if Length(lazRevision) > 0 then begin
|
||||
Result += '-' + lazRevision;
|
||||
while (I <= Length(lazRevision)) and (lazRevision[I] in ['0'..'9']) do
|
||||
Inc(I);
|
||||
if (I > 1) then begin
|
||||
Result += '-' + Copy(lazRevision, 1, I - 1);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue