UI: Graph options: Fix opacity bounds.

This commit is contained in:
Nodir Temirkhodjaev 2019-02-24 21:27:26 +05:00
parent 8decf24a7b
commit a05c78396e

View File

@ -281,7 +281,7 @@ void GraphWindow::updateWindowTitleSpeed()
void GraphWindow::setWindowOpacityPercent(int percent)
{
setWindowOpacity(qreal(qBound(0, percent, 99)) / 100.0);
setWindowOpacity(qreal(qBound(1, percent, 100)) / 100.0);
}
QPen GraphWindow::adjustPen(const QPen &pen, const QColor &color)