CCLabelBMFont bug?


#1

When i create a CCLableBMFont with any string,ex:“hello world”,and then i reset the string “hello\nworld”,the last word is lost.
i fix the code on CCLableBMFont.cpp:
`void CCLabelBMFont::createFontChars()
{

for (unsigned int i= 0; i < stringLen; i++)
{
unsigned short c = m_sString[i];

    if (c == '\n')
    {
    _if(getChildByTag(i))
    removeChildByTag(i);_
        nextFontPositionX = 0;
        nextFontPositionY -= m_pConfiguration->m_nCommonHeight;
        continue;
    }


}
`