Re: TreeView - First element



Probably your problem is here:

    ListTreeModel->iter_swap(iter, iter--)


Because of the post-decrement what you are doing is the same as:
ListTreeModel->iter_swap(iter, iter)
and then iter - 1

    // But if iter is the first element from the list the code isn't work properly

You are doing "begin() != iter" so you are excluding the first element

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]