Added additional checks to method DialogTool::SetAssociatedTool.
--HG-- branch : develop
This commit is contained in:
parent
1f28154116
commit
49258cac8c
|
@ -928,8 +928,16 @@ void DialogTool::Build(const Tool &type)
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void DialogTool::SetAssociatedTool(VAbstractTool *tool)
|
void DialogTool::SetAssociatedTool(VAbstractTool *tool)
|
||||||
{
|
{
|
||||||
this->associatedTool=tool;
|
if (tool != nullptr)
|
||||||
SetToolId(tool->getId());
|
{
|
||||||
|
associatedTool = tool;
|
||||||
|
SetToolId(tool->getId());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
associatedTool = nullptr;
|
||||||
|
SetToolId(NULL_ID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user