Because Seam allowance tool dialog doesn't control all piece options some of

them were lost. ref #836.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-04-08 17:40:25 +03:00
parent b3c86748f4
commit f90c612287

View file

@ -2316,7 +2316,7 @@ void DialogSeamAllowance::EditLabel()
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
VPiece DialogSeamAllowance::CreatePiece() const VPiece DialogSeamAllowance::CreatePiece() const
{ {
VPiece piece; VPiece piece = data->DataPieces()->value(toolId); // Get options we do not control with the dialog
piece.GetPath().SetNodes(GetListInternals<VPieceNode>(uiTabPaths->listWidgetMainPath)); piece.GetPath().SetNodes(GetListInternals<VPieceNode>(uiTabPaths->listWidgetMainPath));
piece.SetCustomSARecords(GetListInternals<CustomSARecord>(uiTabPaths->listWidgetCustomSA)); piece.SetCustomSARecords(GetListInternals<CustomSARecord>(uiTabPaths->listWidgetCustomSA));
piece.SetInternalPaths(GetListInternals<quint32>(uiTabPaths->listWidgetInternalPaths)); piece.SetInternalPaths(GetListInternals<quint32>(uiTabPaths->listWidgetInternalPaths));