changeset 19996:486cba140d2b

Fix IGV small layout bug.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sat, 21 Mar 2015 16:22:15 +0100
parents 9af92bb0dd71
children 58f2aad37d0e
files src/share/tools/IdealGraphVisualizer/HierarchicalLayout/src/com/sun/hotspot/igv/hierarchicallayout/HierarchicalLayoutManager.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/tools/IdealGraphVisualizer/HierarchicalLayout/src/com/sun/hotspot/igv/hierarchicallayout/HierarchicalLayoutManager.java	Sat Mar 21 16:10:53 2015 +0100
+++ b/src/share/tools/IdealGraphVisualizer/HierarchicalLayout/src/com/sun/hotspot/igv/hierarchicallayout/HierarchicalLayoutManager.java	Sat Mar 21 16:22:15 2015 +0100
@@ -526,7 +526,7 @@
                 }
             }
             int n2VIP = 0;
-            for (LayoutEdge e : n1.preds) {
+            for (LayoutEdge e : n2.preds) {
                 if (e.vip) {
                     n2VIP++;
                 }
@@ -563,7 +563,7 @@
                 }
             }
             int n2VIP = 0;
-            for (LayoutEdge e : n1.succs) {
+            for (LayoutEdge e : n2.succs) {
                 if (e.vip) {
                     n2VIP++;
                 }