Fix overriding of labels in child projects

The boolean logic here was wrong.  Permit overrides only
if the parent allows an override.

Change-Id: Ib2cce9d7eea6ca4c6036d3dce419bc338707442d
This commit is contained in:
Shawn Pearce
2013-03-26 17:22:40 -04:00
parent ef3542fb35
commit c0ec8b5ca8

View File

@@ -349,7 +349,7 @@ public class ProjectState {
for (LabelType type : s.getConfig().getLabelSections().values()) {
String lower = type.getName().toLowerCase();
LabelType old = types.get(lower);
if (old == null || !old.canOverride()) {
if (old == null || old.canOverride()) {
types.put(lower, type);
}
}