Page 1 of 1

playtree.cpp has little bit problem.

Posted: 16 Nov 2010 23:50
by JoungEunKim
Hello.

This is not a big problem.
But I report.

modules/gui/skins2/vars/playtree.cpp

Line No. 249

if( pNode->pp_children->i_children ) <--- this part has some problem. Of cause buildNode function is OK.
{
buildNode( pNode->pp_children, rTree.back() );
}

Sometimes i_children has -1 it means it don't have a child. Am I right?
So I change like this.

if( pNode->pp_children->i_children > 0 )
{
buildNode( pNode->pp_children, rTree.back() );
}


Bye!!!

Re: playtree.cpp has little bit problem.

Posted: 17 Nov 2010 10:38
by erwan10
You're right. I will correct it.