Merge pull request #633 from fmahnke/null-fix
Don't index into empty QString in HexEditor.
This commit is contained in:
commit
b3d2a5f230
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue