LCL-GTK3: Improve handling of & accelerator on button captions. Issue #36255, patch from Alexey Tor.

git-svn-id: trunk@62353 -
This commit is contained in:
juha 2019-12-08 08:45:27 +00:00
parent 62ef41f719
commit bdf8608839

View File

@ -1937,7 +1937,8 @@ end;
function ReplaceAmpersandsWithUnderscores(const S: string): string; inline;
begin
Result := StringReplace(S, '&', '_', [rfReplaceAll]);
Result := StringReplace(S, '_', '__', [rfReplaceAll]);
Result := StringReplace(Result, '&', '_', [rfReplaceAll]);
end;
{-------------------------------------------------------------------------------