Skip to content

Commit

Permalink
[GTK] Added another assertion eclipse-platform#882
Browse files Browse the repository at this point in the history
  • Loading branch information
basilevs committed Jan 23, 2024
1 parent 014dfc0 commit 90baece
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3366,7 +3366,8 @@ void _setItemCount (TreeItem parentItem, long parentIter, List<TreeItem> items,
try {
for (int i = oldSize; i < count; i++) {
GTK.gtk_tree_store_insert_after (modelHandle, createdIter, parentIter, i == 0 ? 0 : modificationIter);
new TreeItem (this, parentItem, SWT.NONE, i, createdIter);
TreeItem result = new TreeItem (this, parentItem, SWT.NONE, i, createdIter);
assert items.get(i) == result : "TreeItem should self-insert into sibling list";
C.memmove (modificationIter, createdIter, GTK.GtkTreeIter_sizeof ());
}
} finally {
Expand Down

0 comments on commit 90baece

Please sign in to comment.