Fix tool Arc with given length.

This commit is contained in:
Roman Telezhynskyi 2022-08-23 21:03:35 +03:00
parent 165da734e3
commit be07f701c7

View File

@ -347,8 +347,9 @@ void DialogArcWithLength::ShowDialog(bool click)
}
else
{
VArc arc(*point, VAbstractValApplication::VApp()->toPixel(radius.toDouble()), f1.toDouble(),
line.angle());
const qreal r = Visualization::FindLengthFromUser(radius, data->DataVariables());
const qreal angle1 = Visualization::FindValFromUser(f1, data->DataVariables());
VArc arc(*point, r, angle1, line.angle());
SetLength(QString::number(VAbstractValApplication::VApp()->fromPixel(arc.GetLength())));