Fix link region detection in RichLabels
This commit is contained in:
parent
d2655fa195
commit
62b116cb8f
@ -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();
|
||||
|
Reference in New Issue
Block a user