Revision: 3987
Author: [email protected]
Date: Thu Nov 11 13:42:48 2010
Log: Fixed bug 2825: Consecutive columns in English CompareDM results are no longer indented.
http://code.google.com/p/power-architect/source/detail?r=3987

Modified:
 /trunk/src/main/java/ca/sqlpower/architect/swingui/CompareDMFormatter.java

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/CompareDMFormatter.java Fri Nov 5 13:35:04 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/CompareDMFormatter.java Thu Nov 11 13:42:48 2010
@@ -508,13 +508,12 @@
} else if (ancestors.get(depth).allowsChildType(data.getClass())) {
                 ancestors.add(data);
                 depth++;
-            } else {
- while (depth > 0 && !ancestors.get(depth - 1).allowsChildType(data.getClass())) {
-                    ancestors.remove(depth);
-                    depth--;
-                }
-                ancestors.add(depth, data);
-            }
+            }
+ while (depth > 0 && !ancestors.get(depth - 1).allowsChildType(data.getClass())) {
+                ancestors.remove(depth);
+                depth--;
+            }
+            ancestors.add(depth, data);


             info.setDepth(depth);

Reply via email to