mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 03:09:53 +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);
|
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();
|
||||||
|
Reference in New Issue
Block a user