1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 19:52:09 +01:00

Silenced compiler warning

This commit is contained in:
Martin Tůma 2017-09-30 09:52:36 +02:00
parent a94fa9f0ea
commit e24a3cd99a

View File

@ -388,9 +388,10 @@ void GraphView::updateSliderInfo()
{ {
qreal r, y; qreal r, y;
if (_visible.count() > 1) if (_visible.count() > 1) {
r = 0; r = 0;
else { y = 0;
} else {
QRectF br(_visible.first()->bounds()); QRectF br(_visible.first()->bounds());
if (br.height() < _minYRange) if (br.height() < _minYRange)
br.adjust(0, -(_minYRange/2 - br.height()/2), 0, br.adjust(0, -(_minYRange/2 - br.height()/2), 0,