Revision: 3186
Author: [email protected]
Date: Tue Dec  1 14:47:34 2009
Log: The new check should ensure that the relationships that are imported relationships in the parent table being iterated over are skipped.
http://code.google.com/p/power-architect/source/detail?r=3186

Modified:
/branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/critic/CriticizeAction.java

=======================================
--- /branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/critic/CriticizeAction.java Tue Dec 1 14:42:03 2009 +++ /branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/critic/CriticizeAction.java Tue Dec 1 14:47:34 2009
@@ -98,8 +98,7 @@

         for (SQLObject child : (List<SQLObject>) root.getChildren()) {
             if (child instanceof SQLRelationship
-                    && child.getParent() != null
- && ((SQLTable) child.getParent()).getImportedKeys().contains(child)) { + && ((SQLTable) root).getImportedKeys().contains(child)) { // skip contents of every imported keys folder, or else we will visit every relationship twice
                 continue;
             }

Reply via email to