Connect pins to detail item to correctly translate coordinates.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-04-04 09:00:34 +03:00
parent a9bb99937c
commit 1ecbfaa873

View File

@ -42,6 +42,7 @@
#include "../dialogpiecepath.h"
#include "../../../undocommands/savepiecepathoptions.h"
#include "../../support/dialogeditwrongformula.h"
#include "../../../tools/vtoolseamallowance.h"
#include <QMenu>
#include <QTimer>
@ -2975,6 +2976,9 @@ void DialogSeamAllowance::ShowPins()
if (not qApp->getCurrentScene()->items().contains(m_visPins))
{
m_visPins->VisualMode(NULL_ID);
VToolSeamAllowance *tool = qobject_cast<VToolSeamAllowance*>(VAbstractPattern::getTool(toolId));
SCASSERT(tool != nullptr);
m_visPins->setParentItem(tool);
}
else
{