axmol/tests/cpp-tests/Classes/LabelTest
tyfkda aacec550c9 Fix out of range access in Label (#18789)
Out of range occurred in some condition
when using `Label` with its `getLetter()` member function.

`Label::recordPlaceholderInfo()` member function is called for
new line (\n) letter in `Label::multilineTextWrap()`,
but the function doesn't set `_lettersInfo[letterIndex].lineIndex`.

But `lineIndex` is used in `Label::updateLabelLetters()`
even if letter is new line.

This change checks `letterInfo.valid` to avoid
accessing `_linesOffsetX[letterInfo.lineIndex]`
for invalid (i.e. `NewLine`) letter.
2018-08-06 14:27:47 +08:00
..
LabelTest.cpp check test cases and fix small bugs before 3.17 release (#18786) 2018-04-25 09:50:53 +08:00
LabelTest.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
LabelTestNew.cpp Fix out of range access in Label (#18789) 2018-08-06 14:27:47 +08:00
LabelTestNew.h Fix out of range access in Label (#18789) 2018-08-06 14:27:47 +08:00