Forgot to return a pointer.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-08 17:52:56 +02:00
parent 5f6b394934
commit 11e9b40cb1

View File

@ -166,6 +166,8 @@ VToolSeamAllowance *VToolSeamAllowance::Create(quint32 id, const VPiece &newPiec
connect(scene, &VMainGraphicsScene::EnableDetailItemSelection, piece, &VToolSeamAllowance::AllowSelecting);
connect(scene, &VMainGraphicsScene::HighlightDetail, piece, &VToolSeamAllowance::Highlight);
doc->AddTool(id, piece);
return piece;
}
return nullptr;
}