Permalink
Browse files

Fix Issue #454

  • Loading branch information...
1 parent e8617c4 commit ae34e5c7b1e734e88773972cf7781375ff5ea4f4 @eduramiba eduramiba committed Nov 6, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 DesktopDataLaboratory/src/org/gephi/desktop/datalab/NodeDataTable.java
@@ -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;
/**
*
@@ -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);

0 comments on commit ae34e5c

Please sign in to comment.