From 4c3cf74f185f956d1d8231cdd874ae7375ea6f9b Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 8 Feb 2021 12:27:02 +0000 Subject: [PATCH] Don't linkify any @123 EID text that is followed by an x * This isn't something we generally want to support (@123 should be a separate word) and it can come up with shader names like `shader@0x12345` as well as with icon@2x.png --- qrenderdoc/Code/QRDUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrenderdoc/Code/QRDUtils.cpp b/qrenderdoc/Code/QRDUtils.cpp index e63f56486..9b9741473 100644 --- a/qrenderdoc/Code/QRDUtils.cpp +++ b/qrenderdoc/Code/QRDUtils.cpp @@ -478,8 +478,8 @@ void RichResourceTextInitialise(QVariant &var, ICaptureContext *ctx) int end = match.capturedEnd(4); - // skip @2x since it appears in high-DPI icons - if(eid == 2 && end < text.length() && text[end] == QLatin1Char('x')) + // skip @..x since e.g. @2x appears in high-DPI icons and @0x08732 can appear in shader name + if(end < text.length() && text[end] == QLatin1Char('x')) { match = resRE.match(text, end); continue;