Commit 81ddb591 authored by Mike Wey's avatar Mike Wey
Browse files

Initialize the TreeIter when it's null, Fixes #311

parent aef89448
......@@ -273,6 +273,9 @@ public template TreeModelT(TStruct)
*/
public int getIter(TreeIter iter, TreePath path)
{
if ( iter is null )
iter = new TreeIter();
iter.setModel(this);
return gtk_tree_model_get_iter(
getTreeModelStruct(),
......
......@@ -3653,6 +3653,9 @@ code: start
*/
public int getIter(TreeIter iter, TreePath path)
{
if ( iter is null )
iter = new TreeIter();
iter.setModel(this);
return gtk_tree_model_get_iter(
getTreeModelStruct(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment