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:
@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user