From 80bc9f1f012a9acf45c7e4f34af0f180776eaf31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 18 Nov 2016 09:23:43 +0100 Subject: [PATCH] Fixed bounds check --- src/graphitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphitem.cpp b/src/graphitem.cpp index 0f576066..e8ed7b90 100644 --- a/src/graphitem.cpp +++ b/src/graphitem.cpp @@ -117,7 +117,7 @@ void GraphItem::emitSliderPositionChanged(qreal pos) { if (_type == Time) { if (_graph.hasTime()) { - if (pos <= _graph.last().t()) + if (pos >= _graph.first().t() && pos <= _graph.last().t()) emit sliderPositionChanged(distanceAtTime(pos)); else emit sliderPositionChanged(_graph.last().s() + 1);