You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2011/04/14 14:29:06 UTC
svn commit: r1092181 -
/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TreeViewNodeEditor.java
Author: gbrown
Date: Thu Apr 14 12:29:05 2011
New Revision: 1092181
URL: http://svn.apache.org/viewvc?rev=1092181&view=rev
Log:
Fix issue in TreeNode editor that caused edits to fail for unsorted tree branches.
Modified:
pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TreeViewNodeEditor.java
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TreeViewNodeEditor.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TreeViewNodeEditor.java?rev=1092181&r1=1092180&r2=1092181&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TreeViewNodeEditor.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TreeViewNodeEditor.java Thu Apr 14 12:29:05 2011
@@ -150,7 +150,9 @@ public class TreeViewNodeEditor extends
}
if (parentData.getComparator() == null) {
- parentData.update(path.get(n - 1), treeNode);
+ int index = path.get(n - 1);
+ parentData.remove(index, 1);
+ parentData.insert(treeNode, index);
} else {
parentData.remove(path.get(n - 1), 1);
parentData.add(treeNode);