diff --git a/cocos2dx/label_nodes/CCLabelBMFont.cpp b/cocos2dx/label_nodes/CCLabelBMFont.cpp index 07d1de5661..737e801e42 100644 --- a/cocos2dx/label_nodes/CCLabelBMFont.cpp +++ b/cocos2dx/label_nodes/CCLabelBMFont.cpp @@ -1260,6 +1260,7 @@ void CCLabelBMFont::updateLabel() { float lineWidth = 0.0f; unsigned int line_length = last_line.size(); + // if last line is empty we must just increase lineNumber and work with next line if (line_length == 0) { lineNumber++;