Re: TreeView - First element



Am Samstag, den 02.01.2010, 06:52 -0800 schrieb Adam Chyla [PL]:

> if (ListTreeModel->children().end() != iter)
> This should be false, but it isn't.

It should be false, unless the selection is empty.

The end iterator points to the element one after the last.  It is a
half-open range [begin,end), as usual with the C++ STL.

If there is indeed an error in gtkmm itself, it would help if you could
provide a small self-contained test case for us to try.

--Daniel




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