Commit 40578b13 authored by Jasem Mutlaq's avatar Jasem Mutlaq

FIx another center issue with older Qt

parent e5656839
...@@ -561,9 +561,10 @@ void Message::setPolarResults(QLineF correctionVector, QString polarError) ...@@ -561,9 +561,10 @@ void Message::setPolarResults(QLineF correctionVector, QString polarError)
this->correctionVector = correctionVector; this->correctionVector = correctionVector;
QPointF center = 0.5 * correctionVector.p1() + 0.5 * correctionVector.p2();
QJsonObject vector = { QJsonObject vector = {
{"center_x", correctionVector.center().x()}, {"center_x", center.x()},
{"center_y", correctionVector.center().y()}, {"center_y", center.y()},
{"mag", correctionVector.length()}, {"mag", correctionVector.length()},
{"pa", correctionVector.angle()}, {"pa", correctionVector.angle()},
{"error", polarError} {"error", polarError}
......
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