Skip to content

Commit

Permalink
refs #75 Fixing apply to member
Browse files Browse the repository at this point in the history
The apply to member attribute is not properly handled.
The altered settings are now transfered to the member elements.
  • Loading branch information
mkaring committed Aug 25, 2019
1 parent 48a7409 commit c362758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Confuser.Core/ObfAttrMarker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void ApplyInfo(IDnlibDef context, ProtectionSettings settings, IEnumerable<Prote
}
}
if (!string.IsNullOrEmpty(info.Settings)) {
if ((type == ApplyInfoType.ParentInfo && info.Condition != null && info.ApplyToMember) ||
if ((type == ApplyInfoType.ParentInfo && info.ApplyToMember) ||
type == ApplyInfoType.CurrentInfoOnly ||
(type == ApplyInfoType.CurrentInfoInherits && info.Condition == null && info.ApplyToMember)) {
parser.ParseProtectionString(settings, info.Settings);
Expand Down

0 comments on commit c362758

Please # to comment.