mirror of
https://github.com/fadden/6502bench.git
synced 2026-04-27 03:17:45 +00:00
Fix crash when header line right-clicked
This commit is contained in:
1 parent
c873383c4d
commit
4fe7257399
1 file changed
+5
@@ -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