Better to give a piece default name.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-09 16:27:17 +02:00
parent 39d2ea41ac
commit a6a492c8d3

View File

@ -615,7 +615,7 @@ void VPattern::ParseDetailElement(const QDomElement &domElement, const Document
{
VPiece detail;
const quint32 id = GetParametrId(domElement);
detail.SetName(GetParametrString(domElement, AttrName, ""));
detail.SetName(GetParametrString(domElement, AttrName, tr("Detail")));
detail.SetMx(qApp->toPixel(GetParametrDouble(domElement, AttrMx, "0.0")));
detail.SetMy(qApp->toPixel(GetParametrDouble(domElement, AttrMy, "0.0")));
// detail.setSeamAllowance(GetParametrUInt(domElement, VToolDetail::AttrSupplement, "1"));