Fixed crashing on empty string for UIRichTextLabel

This commit is contained in:
YourWishes committed 2023-06-19 12:04:26 -07:00
1 parent c01f484a87
commit 811271dc5d
3 files changed
+3 -5

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;