mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 06:09:29 +02:00
Converter fix: Disabling a function replacement category was not respected.
git-svn-id: trunk@30020 -
This commit is contained in:
parent
ba4cb08aec
commit
8b7d161446
@ -576,7 +576,11 @@ var
|
||||
then begin
|
||||
FuncDefInfo:=ReplaceFuncs.FuncAtInd(i);
|
||||
if ReplaceFuncs.Categories.Find(FuncDefInfo.Category, x)
|
||||
// Categories.Objects[x] is used as a boolean flag.
|
||||
and Assigned(ReplaceFuncs.Categories.Objects[x])
|
||||
// UTF8 funcs are in LCL which console apps don't have -> don't change.
|
||||
and not (aIsConsoleApp and (FuncDefInfo.Category='UTF8Names'))
|
||||
// Keep Windows funcs in a Windows application.
|
||||
and (fCTLink.Settings.MultiPlatform or (FuncDefInfo.Category<>'WindowsAPI'))
|
||||
then begin
|
||||
// Create a new replacement object for params, position and other info.
|
||||
|
Loading…
Reference in New Issue
Block a user