Commit 2c8d848f authored by Dirk Wilden's avatar Dirk Wilden
Browse files

fixed protected member bug

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10521 383ad7c9-94d9-4d36-a494-682f7c89f535
parent eaccbefe
......@@ -216,13 +216,13 @@ typename SkeletonT<PointT>::Joint *SkeletonT<PointT>::Iterator::nextSibling(Join
{
// first find the current node in the parents list of children
typename Joint::ChildIter it;
for(it = _pParent->children_.begin(); it != _pParent->children_.end(); ++it)
for(it = _pParent->begin(); it != _pParent->end(); ++it)
{
if(*it == _pJoint)
{
// found it. If there is another child it is the wanted sibling
++it;
if(it == _pParent->children_.end())
if(it == _pParent->end())
return 0; // oh no, we ran out of siblings
return *it;
......
Supports Markdown
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