GP-5661 - Fix SourceType issue in Apply Data Archives

This commit is contained in:
ghizard 2025-05-13 12:45:19 -04:00
parent a1b6084c88
commit b15b51e48e

View file

@ -259,7 +259,8 @@ public class ApplyFunctionDataTypesCmd extends BackgroundCommand<Program> {
}
SourceType mostTrusted = getMostTrustedParameterSource(func);
if (alwaysReplace || !source.isLowerPriorityThan(mostTrusted)) {
// Do not replace function if one with same SourceType exists
if (alwaysReplace || source.isHigherPriorityThan(mostTrusted)) {
applyFunction(sym, fdef);
}
return;