Commit 64b55f14 authored by Erwan Tulou's avatar Erwan Tulou

skins2: add a needed boundary check (playtree control)

parent fcdd5a13
...@@ -665,7 +665,13 @@ void CtrlTree::makeImage() ...@@ -665,7 +665,13 @@ void CtrlTree::makeImage()
__MIN( m_pCurBitmap->getHeight(), __MIN( m_pCurBitmap->getHeight(),
height - yPos2), true ); height - yPos2), true );
} }
yPos += i_itemHeight - pText->getHeight(); yPos += (i_itemHeight - pText->getHeight());
if( yPos >= height )
{
delete pText;
break;
}
int ySrc = 0; int ySrc = 0;
if( yPos < 0 ) if( yPos < 0 )
{ {
......
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