Unverified Commit 2968b6a2 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Fix circular polyons (#9132)

parent 4dcd0767
......@@ -145,7 +145,7 @@ Item {
var width = initialVertices[0].distanceTo(initialVertices[1])
var height = initialVertices[1].distanceTo(initialVertices[2])
var radius = Math.min(width, height) / 2
var center = initialVertices[4]
var center = initialVertices[0].atDistanceAndAzimuth(width / 2, 90).atDistanceAndAzimuth(height / 2, 180)
_createCircularPolygon(center, radius)
}
......
......@@ -628,7 +628,7 @@ TransectStyleComplexItem::ReadyForSaveState TransectStyleComplexItem::readyForSa
terrainReady = true;
}
bool polygonNotReady = !_surveyAreaPolygon.isValid();
qDebug() << polygonNotReady << _wizardMode << terrainReady;
//qDebug() << polygonNotReady << _wizardMode << terrainReady;
return (polygonNotReady || _wizardMode) ?
NotReadyForSaveData :
(terrainReady ? ReadyForSave : NotReadyForSaveTerrain);
......
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