mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 11:56:45 +02:00
IDE: In All Compiler Options, improve the order of generated options when original data was on the same line.
git-svn-id: trunk@43860 -
This commit is contained in:
parent
b5f6916a84
commit
a254f34a26
@ -1198,6 +1198,7 @@ var
|
||||
sl: TStringList;
|
||||
begin
|
||||
Result := mrOK;
|
||||
fCurOrigLine := 0;
|
||||
fRootOptGroup.DeselectAll;
|
||||
fDefines.Clear;
|
||||
fInvalidOptions.Clear;
|
||||
@ -1206,7 +1207,6 @@ begin
|
||||
// Separate options that are on one line.
|
||||
for i := 0 to aStrings.Count-1 do
|
||||
begin
|
||||
fCurOrigLine := i;
|
||||
s := Trim(aStrings[i]);
|
||||
if s = '' then Continue;
|
||||
sl.Clear;
|
||||
@ -1222,6 +1222,7 @@ begin
|
||||
else
|
||||
if not fRootOptGroup.SelectOption(s) then
|
||||
fInvalidOptions.AddObject(s, TObject(Pointer(i)));
|
||||
Inc(fCurOrigLine);
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user