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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user