mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Fix link region detection in RichLabels
This commit is contained in:
@@ -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