This commit is contained in:
Bertrand Songis
2017-03-21 07:45:05 +01:00
committed by GitHub
parent 4aa0c1bbe4
commit 91a042200b
@@ -313,7 +313,7 @@ void RadioOutputsWidget::setValues()
for (ch = m_channelsMap.constBegin(); ch != m_channelsMap.constEnd(); ++ch) {
if (ch.key() >= CPN_MAX_CHNOUT)
continue;
ch.value().first->setText(QString("%1%").arg(outputs.chans[ch.key()] * 100 / 1024));
ch.value().first->setText(QString("%1%").arg((outputs.chans[ch.key()] * 100 + 512) / 1024));
ch.value().second->setValue(qMin(1024, qMax(-1024, outputs.chans[ch.key()])));
}
}