Better history record for an elliptical arc.
--HG-- branch : feature
This commit is contained in:
parent
6f4d1b5ed9
commit
2b9a50bf3a
|
@ -382,8 +382,10 @@ QString DialogHistory::Record(const VToolRecord &tool)
|
||||||
case Tool::EllipticalArc:
|
case Tool::EllipticalArc:
|
||||||
{
|
{
|
||||||
const QSharedPointer<VEllipticalArc> elArc = data->GeometricObject<VEllipticalArc>(tool.getId());
|
const QSharedPointer<VEllipticalArc> elArc = data->GeometricObject<VEllipticalArc>(tool.getId());
|
||||||
SCASSERT(elArc != nullptr);
|
SCASSERT(not elArc.isNull());
|
||||||
return elArc->NameForHistory(tr("Elliptical arc"));
|
return tr("%1 with length %2")
|
||||||
|
.arg(elArc->NameForHistory(tr("Elliptical arc")))
|
||||||
|
.arg(elArc->GetLength());
|
||||||
}
|
}
|
||||||
//Because "history" not only show history of pattern, but help restore current data for each pattern's
|
//Because "history" not only show history of pattern, but help restore current data for each pattern's
|
||||||
//piece, we need add record about details and nodes, but don't show them.
|
//piece, we need add record about details and nodes, but don't show them.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user