Merge pull request #633 from fmahnke/null-fix

Don't index into empty QString in HexEditor.
This commit is contained in:
thor2016 2023-04-17 21:26:34 -04:00 committed by GitHub
commit b3d2a5f230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -2777,7 +2777,13 @@ void QHexEdit::keyPressEvent(QKeyEvent *event)
event->accept();
}
else
{
{ // Use the input text to modify the values in the editor area.
if (event->text().isEmpty())
{
return;
}
int key;
if ( cursorPosX >= 32 )
{ // Edit Area is ASCII