From 2b9a50bf3a8320ef9f6956d4d9d7ec2fae7edaca Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 19 Dec 2016 14:22:25 +0200 Subject: [PATCH] Better history record for an elliptical arc. --HG-- branch : feature --- src/app/valentina/dialogs/dialoghistory.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/valentina/dialogs/dialoghistory.cpp b/src/app/valentina/dialogs/dialoghistory.cpp index c3170d409..fc05bb056 100644 --- a/src/app/valentina/dialogs/dialoghistory.cpp +++ b/src/app/valentina/dialogs/dialoghistory.cpp @@ -382,8 +382,10 @@ QString DialogHistory::Record(const VToolRecord &tool) case Tool::EllipticalArc: { const QSharedPointer elArc = data->GeometricObject(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.