From 62b116cb8fa73cfc8772354d42b07c5157a3c7ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sat, 23 Dec 2023 14:20:27 +0100 Subject: [PATCH] Fix link region detection in RichLabels --- src/gui/interface/RichLabel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/interface/RichLabel.cpp b/src/gui/interface/RichLabel.cpp index 1dcd7f5aa..b64769855 100644 --- a/src/gui/interface/RichLabel.cpp +++ b/src/gui/interface/RichLabel.cpp @@ -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();