Better history record for an elliptical arc.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-12-19 14:22:25 +02:00
parent 6f4d1b5ed9
commit 2b9a50bf3a

View File

@ -382,8 +382,10 @@ QString DialogHistory::Record(const VToolRecord &tool)
case Tool::EllipticalArc:
{
const QSharedPointer<VEllipticalArc> elArc = data->GeometricObject<VEllipticalArc>(tool.getId());
SCASSERT(elArc != nullptr);
return elArc->NameForHistory(tr("Elliptical arc"));
SCASSERT(not elArc.isNull());
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
//piece, we need add record about details and nodes, but don't show them.