Fix tool Arc with given length.
This commit is contained in:
parent
165da734e3
commit
be07f701c7
|
@ -347,8 +347,9 @@ void DialogArcWithLength::ShowDialog(bool click)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
VArc arc(*point, VAbstractValApplication::VApp()->toPixel(radius.toDouble()), f1.toDouble(),
|
const qreal r = Visualization::FindLengthFromUser(radius, data->DataVariables());
|
||||||
line.angle());
|
const qreal angle1 = Visualization::FindValFromUser(f1, data->DataVariables());
|
||||||
|
VArc arc(*point, r, angle1, line.angle());
|
||||||
|
|
||||||
SetLength(QString::number(VAbstractValApplication::VApp()->fromPixel(arc.GetLength())));
|
SetLength(QString::number(VAbstractValApplication::VApp()->fromPixel(arc.GetLength())));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user