From e24a3cd99a3d979db02591319096b52a91ab94b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 30 Sep 2017 09:52:36 +0200 Subject: [PATCH] Silenced compiler warning --- src/graphview.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/graphview.cpp b/src/graphview.cpp index 3597f480..7ab2a228 100644 --- a/src/graphview.cpp +++ b/src/graphview.cpp @@ -388,9 +388,10 @@ void GraphView::updateSliderInfo() { qreal r, y; - if (_visible.count() > 1) + if (_visible.count() > 1) { r = 0; - else { + y = 0; + } else { QRectF br(_visible.first()->bounds()); if (br.height() < _minYRange) br.adjust(0, -(_minYRange/2 - br.height()/2), 0,