Bug fix for assembly tool tip check going off end of string.

This commit is contained in:
mjbudd77 2021-07-11 13:26:59 -04:00
parent b601d36641
commit d212e1aae1
1 changed files with 2 additions and 1 deletions

View File

@ -4452,7 +4452,8 @@ bool QAsmView::event(QEvent *event)
}
}
if ( (c.x() > operandLinePos) && opcodeValid )
if ( opcodeValid && (c.x() > operandLinePos) &&
(c.x() < asmEntry[line]->text.size()) )
{
i = c.x();