From a05c78396e277b80a9479e3746f18cb5f2d55ec3 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sun, 24 Feb 2019 21:27:26 +0500 Subject: [PATCH] UI: Graph options: Fix opacity bounds. --- src/ui/graph/graphwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/graph/graphwindow.cpp b/src/ui/graph/graphwindow.cpp index e23db9c9..82262ab1 100644 --- a/src/ui/graph/graphwindow.cpp +++ b/src/ui/graph/graphwindow.cpp @@ -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)