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
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

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