Skip to content

Commit

Permalink
Fix canBeRoot constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Abishev committed Oct 11, 2012
1 parent efe3a7b commit 116ba9b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -91,7 +91,7 @@ public static boolean canBeRoot(String conceptFqName, SModel model, @Nullable Ch

// todo: use concept descriptor here?
SNode concept = SModelUtil.findConceptDeclaration(conceptFqName, GlobalScope.getInstance());
if (!SNodeUtil.isInstanceOfConceptDeclaration(concept) && SNodeUtil.getConceptDeclaration_IsRootable(concept)) {
if (!SNodeUtil.isInstanceOfConceptDeclaration(concept) || !SNodeUtil.getConceptDeclaration_IsRootable(concept)) {
if (checkingNodeContext != null) {
checkingNodeContext.setBreakingNode(new SNodePointer(concept));
}
Expand Down

0 comments on commit 116ba9b

Please sign in to comment.