Commit 29d39027 authored by Sergio Pérez's avatar Sergio Pérez
Browse files

Restriction children position modification in getChild(node,Type)

parent bcd4f364
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -740,9 +740,12 @@ public class LAST extends GraphWithRoot {
				switch (type)
				{
					case Generator:
						return getChild(node, 0);
						return getChildren(node, Node.Type.Generator).get(0);
					case Filter:
						return getChild(node, 1);
						List<Node> children = getChildren(node, Node.Type.Filter);
						if (children.isEmpty())
							throw new IllegalArgumentException("The Restriction node does not contain Filter nodes");
						return children.get(0);
				}
			case List:
				switch (type)