LazUtils, Translations unit: Simplified ModifyFlag method. Now we treat space character as a flag delimiter in all cases, thus improving parsing of flags in case of missing comma characters.

git-svn-id: trunk@61283 -
This commit is contained in:
maxim 2019-05-23 22:52:31 +00:00
parent a772554251
commit cc4f34a35e

View File

@ -1761,20 +1761,14 @@ var
i: Integer;
begin
Result := false;
MF := nil;
F := TStringList.Create;
MF := TStringList.Create;
try
F.CommaText := Flags;
if Pos(',', AFlags) = 0 then
ProcessFlag(AFlags)
else
begin
MF := TStringList.Create;
MF.CommaText := AFlags;
for i := 0 to MF.Count - 1 do
ProcessFlag(MF[i]);
end;
MF.CommaText := AFlags;
for i := 0 to MF.Count - 1 do
ProcessFlag(MF[i]);
if not Result then
exit;