1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-05 15:12:51 +02:00

Fixed graph bounds issue

This commit is contained in:
2016-11-18 18:02:40 +01:00
parent 80bc9f1f01
commit 23f5a317d0
3 changed files with 8 additions and 6 deletions

View File

@ -400,6 +400,8 @@ void GraphView::emitSliderPositionChanged(const QPointF &pos)
return;
_sliderPos = (pos.x() / _slider->area().width()) * bounds().width();
_sliderPos = qMax(_sliderPos, bounds().left());
_sliderPos = qMin(_sliderPos, bounds().right());
updateSliderPosition();
emit sliderPositionChanged(_sliderPos);