diff --git a/sdrbase/gui/valuedialz.cpp b/sdrbase/gui/valuedialz.cpp index 5b59c5ee0..23aa5d56e 100644 --- a/sdrbase/gui/valuedialz.cpp +++ b/sdrbase/gui/valuedialz.cpp @@ -211,7 +211,7 @@ void ValueDialZ::paintEvent(QPaintEvent*) painter.setPen(m_colorMapper.getBoundaryColor()); painter.setBrush(Qt::NoBrush); - for (int i = 1; i < m_numDigits + m_numDecimalPoints; i++) + for (int i = 1; i < 1 + m_numDigits + m_numDecimalPoints; i++) { painter.setPen(m_colorMapper.getBoundaryColor()); painter.drawLine(1 + i * m_digitWidth, 1, 1 + i * m_digitWidth, height() - 1);