Fix link region detection in RichLabels

This commit is contained in:
Tamás Bálint Misius
2023-12-23 14:20:27 +01:00
parent d2655fa195
commit 62b116cb8f

View File

@@ -41,7 +41,7 @@ void RichLabel::SetText(String newText)
auto text = String(beginTextIt + 1, endRegionIt); auto text = String(beginTextIt + 1, endRegionIt);
sb << String(it, beginRegionIt); sb << String(it, beginRegionIt);
auto good = false; auto good = false;
if (action == "a" || data.size() || text.size()) if (action == "a" && data.size() && text.size())
{ {
RichTextRegion region; RichTextRegion region;
region.begin = sb.Size(); region.begin = sb.Size();