Просмотр исходного кода

Fix UIMultilineLabel getText() - and some further functions

Joachim Meyer 11 лет назад
Родитель
Сommit
d35ce6cbcd
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Modules/Contents/UI/Source/PolyUIElement.cpp

+ 1 - 1
Modules/Contents/UI/Source/PolyUIElement.cpp

@@ -51,10 +51,10 @@ void UIMultilineLabel::setText(const String& text) {
         } else {
             UILabel *label = new UILabel(lines[i], labelSize, labelFontName, labelAAMode);
             lineSize = label->getHeight();
-            addChild(label);
             label->setPositionY(yPos);
             yPos += label->getHeight() + spacing;
             addChild(label);
+			labels.push_back(label);
         }
     }
 }