From 0cfe0b59365fdeef31cc34a40c8dab0d89f45f6a Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 30 Jan 2018 10:31:50 +0200 Subject: [PATCH] Fix Valentina's crash. Valentina crashes when delete several selected pieces. --HG-- branch : develop --- src/libs/vtools/tools/vtoolseamallowance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vtools/tools/vtoolseamallowance.cpp b/src/libs/vtools/tools/vtoolseamallowance.cpp index f56be8bfb..f720beb66 100644 --- a/src/libs/vtools/tools/vtoolseamallowance.cpp +++ b/src/libs/vtools/tools/vtoolseamallowance.cpp @@ -1862,7 +1862,7 @@ QList VToolSeamAllowance::SelectedTools() const for(int i=0; i < list.size(); ++i) { VToolSeamAllowance *tool = qgraphicsitem_cast(list.at(i)); - if (tool->getId() != m_id) + if (tool != nullptr && tool->getId() != m_id) { tools.append(tool); }