Fixed issue #607. Cut tools do not support operation tools.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-01-04 13:38:10 +02:00
parent f4a2d64497
commit 1882833ce7

View File

@ -106,16 +106,11 @@ inline void VToolCut::ShowToolVisualization(bool show)
{
delete vis;
}
if (VAbstractSpline *parentCurve = qobject_cast<VAbstractSpline *>(doc->getTool(curveCutId)))
VDataTool *parent = doc->getTool(VAbstractTool::data.GetGObject(curveCutId)->getIdTool());
if (VAbstractSpline *parentCurve = qobject_cast<VAbstractSpline *>(parent))
{
if (detailsMode)
{
parentCurve->ShowHandles(detailsMode);
}
else
{
parentCurve->ShowHandles(show);
}
detailsMode ? parentCurve->ShowHandles(detailsMode) : parentCurve->ShowHandles(show);
}
}