Label:Fixed display not as expected(Redmine issue:22133).

This commit is contained in:
WenhaiLin 2015-08-17 22:46:19 +08:00
parent e380b0cffa
commit 990a25f759
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ void FontAtlas::findNewCharacters(const std::u16string& u16Text, std::unordered_
else else
{ {
auto length = u16Text.length(); auto length = u16Text.length();
newChars.resize(length); newChars.reserve(length);
for (size_t i = 0; i < length; ++i) for (size_t i = 0; i < length; ++i)
{ {
auto outIterator = _letterDefinitions.find(u16Text[i]); auto outIterator = _letterDefinitions.find(u16Text[i]);