diff --git a/src/MissionManager/SurveyMissionItem.cc b/src/MissionManager/SurveyMissionItem.cc index f9406e62580e5645856bad6788442f501f91bd85..9a352600b5b4797722cfb230dcd0d78f1bb59315 100644 --- a/src/MissionManager/SurveyMissionItem.cc +++ b/src/MissionManager/SurveyMissionItem.cc @@ -538,8 +538,8 @@ void SurveyMissionItem::_gridGenerator(const QList& polygonPoints, QLi // Create set of rotated parallel lines within the expanded bounding rect. Make the lines larger than the // bounding box to guarantee intersection. QList lineList; - float x = largeBoundRect.topLeft().x(); float gridSpacing = _gridSpacingFact.rawValue().toDouble(); + float x = largeBoundRect.topLeft().x() - (gridSpacing / 2); while (x < largeBoundRect.bottomRight().x()) { float yTop = largeBoundRect.topLeft().y() - 100.0; float yBottom = largeBoundRect.bottomRight().y() + 100.0;