1
0
mirror of https://github.com/fadden/6502bench.git synced 2026-04-22 01:16:42 +00:00

Fix crash when header line right-clicked

This commit is contained in:
Andy McFadden
2025-07-09 20:34:13 -07:00
parent c873383c4d
commit 4fe7257399
+5
View File
@@ -2459,6 +2459,11 @@ namespace SourceGen {
internalTargetOffset = externalAddr = -1;
externalSym = null;
if (selOffset < 0) {
// Header comment or equate selected.
return false;
}
Anattrib attr = project.GetAnattrib(selOffset);
if (attr.IsInstructionStart) {
if (!attr.IsInstructionWithOperand) {