Fix Valentina's crash.
Valentina crashes when delete several selected pieces. --HG-- branch : develop
This commit is contained in:
parent
3bdf60705d
commit
0cfe0b5936
|
@ -1862,7 +1862,7 @@ QList<VToolSeamAllowance *> VToolSeamAllowance::SelectedTools() const
|
||||||
for(int i=0; i < list.size(); ++i)
|
for(int i=0; i < list.size(); ++i)
|
||||||
{
|
{
|
||||||
VToolSeamAllowance *tool = qgraphicsitem_cast<VToolSeamAllowance *>(list.at(i));
|
VToolSeamAllowance *tool = qgraphicsitem_cast<VToolSeamAllowance *>(list.at(i));
|
||||||
if (tool->getId() != m_id)
|
if (tool != nullptr && tool->getId() != m_id)
|
||||||
{
|
{
|
||||||
tools.append(tool);
|
tools.append(tool);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user