Skip to content

Commit d35ce6c

Browse files
author
Joachim Meyer
committed
Fix UIMultilineLabel getText() - and some further functions
1 parent 7fcf69c commit d35ce6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Contents/UI/Source/PolyUIElement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ void UIMultilineLabel::setText(const String& text) {
5151
} else {
5252
UILabel *label = new UILabel(lines[i], labelSize, labelFontName, labelAAMode);
5353
lineSize = label->getHeight();
54-
addChild(label);
5554
label->setPositionY(yPos);
5655
yPos += label->getHeight() + spacing;
5756
addChild(label);
57+
labels.push_back(label);
5858
}
5959
}
6060
}

0 commit comments

Comments
 (0)