Ref T736 Fix radar rotating in wrong direction when Lock North is unchecked

This commit is contained in:
Mat Sutcliffe
2019-10-26 16:31:14 +01:00
parent 5af2366575
commit 0e9297ff5f

View File

@@ -216,8 +216,8 @@ namespace BlackGui
{
// Rotations are summed up, hence rotate back before applying the new rotation.
// Doing a global transformation reset will not work as it resets also zooming.
ui->gv_RadarView->rotate(-m_rotatenAngle);
ui->gv_RadarView->rotate(headingDegree);
ui->gv_RadarView->rotate(m_rotatenAngle);
ui->gv_RadarView->rotate(-headingDegree);
m_rotatenAngle = headingDegree;
}
}