fixed a bug, thx to Ed Willink for code review.

This commit is contained in:
Moritz Eysholdt 2012-03-28 09:12:06 -04:00
parent 3ce0d96106
commit 750f07ad9f

View file

@ -66,7 +66,7 @@ public class BacktrackingSemanticSequencer extends AbstractSemanticSequencer {
if (o2.getAssignedGrammarElement() == nodeModelEle)
return 1;
}
if (o1.getAssignedGrammarElement() == null && o1.getAssignedGrammarElement() == null)
if (o1.getAssignedGrammarElement() == null && o2.getAssignedGrammarElement() == null)
return 0;
if (o1.getAssignedGrammarElement() == null)
return 1;