Skip to content

Commit

Permalink
Fix Issue #454
Browse files Browse the repository at this point in the history
  • Loading branch information
eduramiba committed Nov 6, 2011
1 parent e8617c4 commit ae34e5c
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -101,6 +101,7 @@ Development and Distribution License("CDDL") (collectively, the
import org.gephi.desktop.datalab.utils.TimeIntervalsRenderer;
import org.gephi.dynamic.api.DynamicController;
import org.gephi.dynamic.api.DynamicModel;
import org.netbeans.swing.etable.ETableColumnModel;

/**
*
Expand Down Expand Up @@ -266,6 +267,7 @@ public void refreshModel(HierarchicalGraph graph, AttributeColumn[] cols, final
}
NodeTreeModel nodeTreeModel = new NodeTreeModel(graph.wrapToTreeNode());
final OutlineModel mdl = DefaultOutlineModel.createOutlineModel(nodeTreeModel, new NodeRowModel(cols), true);
((ETableColumnModel)outlineTable.getColumnModel()).clearSortedColumns();//Outline has problems when a sorted column in the previous model is not in the new model
outlineTable.setRootVisible(false);
outlineTable.setRenderDataProvider(new NodeRenderer());
outlineTable.setModel(mdl);
Expand Down

0 comments on commit ae34e5c

Please sign in to comment.