| 1045 | } |
| 1046 | |
| 1047 | PathPartVector::size_type PathObject::findPartIndexForIndex(MapCoordVector::size_type coords_index) const |
| 1048 | { |
| 1049 | for (PathPartVector::size_type i = 0; i < path_parts.size(); ++i) |
| 1050 | { |
| 1051 | if (path_parts[i].first_index <= coords_index && path_parts[i].last_index >= coords_index) |
| 1052 | return i; |
| 1053 | } |
| 1054 | Q_ASSERT(false); |
| 1055 | return 0; |
| 1056 | } |
| 1057 | |
| 1058 | PathCoord PathObject::findPathCoordForIndex(MapCoordVector::size_type index) const |
| 1059 | { |
no test coverage detected