Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
7b2526e76a
2 changed files with 11 additions and 1 deletions
|
@ -160,6 +160,13 @@ public class RenderingRule {
|
||||||
ifElseChildren.add(rr);
|
ifElseChildren.add(rr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void addToBeginIfElseChildren(RenderingRule rr){
|
||||||
|
if(ifElseChildren == null){
|
||||||
|
ifElseChildren = new ArrayList<RenderingRule>();
|
||||||
|
}
|
||||||
|
ifElseChildren.add(0, rr);
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isGroup() {
|
public boolean isGroup() {
|
||||||
return isGroup;
|
return isGroup;
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,9 +107,12 @@ public class RenderingRulesStorage {
|
||||||
if (renderingAttributes.containsKey(e.getKey())) {
|
if (renderingAttributes.containsKey(e.getKey())) {
|
||||||
RenderingRule root = renderingAttributes.get(e.getKey());
|
RenderingRule root = renderingAttributes.get(e.getKey());
|
||||||
List<RenderingRule> list = e.getValue().getIfElseChildren();
|
List<RenderingRule> list = e.getValue().getIfElseChildren();
|
||||||
|
e.getValue().addToBeginIfElseChildren(root);
|
||||||
for (RenderingRule every : list) {
|
for (RenderingRule every : list) {
|
||||||
|
if(every != root) {
|
||||||
root.addIfElseChildren(every);
|
root.addIfElseChildren(every);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
renderingAttributes.put(e.getKey(), e.getValue());
|
renderingAttributes.put(e.getKey(), e.getValue());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue