CompilerExplorer: Fix adding text marks to ASM

Change-Id: I99d5090f770ad74c0e0c0317186d436ced492280
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-10-31 12:52:37 +01:00
parent edea408026
commit 141cf78b2d

View File

@@ -479,6 +479,7 @@ void CompilerWidget::doCompile()
auto mark = new TextMark(m_asmDocument.get(),
i,
TextMarkCategory{Tr::tr("Bytes"), "Bytes"});
m_asmDocument->addMark(mark);
mark->setLineAnnotation(l.opcodes.join(' '));
m_marks.append(mark);
}