Commit f57d805c authored by DonLakeFlyer's avatar DonLakeFlyer

Handle no polygon case

parent 159bf923
......@@ -305,12 +305,15 @@ void CorridorScanComplexItem::_rebuildCorridorPolygon(void)
QList<QGeoCoordinate> secondSideVertices = _corridorPolyline.offsetPolyline(-halfWidth);
_surveyAreaPolygon.clear();
QList<QGeoCoordinate> rgCoord;
foreach (const QGeoCoordinate& vertex, firstSideVertices) {
_surveyAreaPolygon.appendVertex(vertex);
rgCoord.append(vertex);
}
for (int i=secondSideVertices.count() - 1; i >= 0; i--) {
_surveyAreaPolygon.appendVertex(secondSideVertices[i]);
rgCoord.append(secondSideVertices[i]);
}
_surveyAreaPolygon.appendVertices(rgCoord);
}
void CorridorScanComplexItem::_rebuildTransectsPhase1(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment