ValueDial: Fix array being accessed out of range.

pull/2096/head
srcejon 2024-04-30 09:33:54 +01:00
rodzic 4f2b03646f
commit 39760146d4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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