Fixed crashing on empty string for UIRichTextLabel

This commit is contained in:
2023-06-19 12:04:26 -07:00
parent f468ddee50
commit 9aa6a0f529
2 changed files with 3 additions and 2 deletions

View File

@ -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;