Fixed crashing on empty string for UIRichTextLabel
This commit is contained in:
@ -30,6 +30,7 @@ void UIRichTextLabel::onStart() {
|
||||
|
||||
std::function<void(Xml*)> parseChildren = [&](Xml *node) {
|
||||
if(node->children.empty()) {
|
||||
if(node->node == "root") return;
|
||||
struct UILabelText text;
|
||||
text.style = current;
|
||||
text.text = node->value;
|
||||
|
Reference in New Issue
Block a user