Fixed crashing on empty string for UIRichTextLabel

This commit is contained in:
YourWishes committed 2023-06-19 12:04:26 -07:00
1 parent f468ddee50
commit 9aa6a0f529
2 files changed
+3 -2

No files matched your search

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