1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-18 12:54:23 +02:00

Fixed path/distances size difference issue

This commit is contained in:
2016-11-15 18:08:44 +01:00
parent eb5692a0ab
commit e9e7660beb
3 changed files with 17 additions and 6 deletions

View File

@ -77,6 +77,8 @@ QPointF PathItem::position(qreal x) const
int high = _distance.count() - 1;
int mid = 0;
Q_ASSERT(_distance.count() == _path.elementCount());
Q_ASSERT(high > low);
Q_ASSERT(x >= _distance.at(low) && x <= _distance.at(high));