mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
ValueDial: Fix array being accessed out of range.
This commit is contained in:
parent
4f2b03646f
commit
39760146d4
@ -601,7 +601,7 @@ void ValueDial::keyPressEvent(QKeyEvent *value)
|
||||
emit changed(m_valueNew);
|
||||
m_cursor++;
|
||||
|
||||
if (m_text[m_cursor] == m_groupSeparator) {
|
||||
if ((m_cursor >= 0) && (m_cursor < m_text.size()) && (m_text[m_cursor] == m_groupSeparator)) {
|
||||
m_cursor++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user