ValueDial: Fix array being accessed out of range.

This commit is contained in:
srcejon 2024-04-30 09:33:54 +01:00
parent 4f2b03646f
commit 39760146d4
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}