Little improvement for Unit tool. New detail will have offset from first detail.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-06-30 19:53:16 +03:00
parent c89243a288
commit 800c1b4dc9

View File

@ -637,6 +637,8 @@ VToolUnionDetails* VToolUnionDetails::Create(const quint32 _id, const VDetail &d
newDetail.setName(tr("United detail"));
newDetail.setWidth(d1.getWidth());
newDetail.setMx(d1.getMx());
newDetail.setMy(d1.getMy());
VToolDetail::Create(0, newDetail, scene, doc, data, parse, Source::FromTool, drawName);
QHash<quint32, VDataTool*>* tools = doc->getTools();
SCASSERT(tools != nullptr);