Commit 000145e6 authored by Pavel Vaynerman's avatar Pavel Vaynerman

(UniXML): исправил ошибку в iterator::find().

Искать нужно "в глубь" и "в ширь", но не "по всему дереву"(вверх).
parent 00c44642
...@@ -443,11 +443,6 @@ bool UniXML_iterator::find( const std::string searchnode ) ...@@ -443,11 +443,6 @@ bool UniXML_iterator::find( const std::string searchnode )
return true; return true;
} }
while(!curNode->next && curNode->parent)
{
curNode=curNode->parent;
}
curNode=curNode->next; curNode=curNode->next;
if ( curNode && searchnode == (const char*)curNode->name ) if ( curNode && searchnode == (const char*)curNode->name )
......
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