From 1e8342c583dee2fe1d8a2a14c0bdefab08c239b0 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 24 Aug 2015 15:54:55 +0300 Subject: [PATCH] Make the Part result selectable (the fix for crash) --- src/Model/Model_AttributeSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 767e86331..07b913161 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -745,7 +745,7 @@ bool Model_AttributeSelection::selectPart( // store the shape (in case part is not loaded it should be usefull TopoDS_Shape aShape; std::string aName = theContext->data()->name(); - if (theSubShape->isNull()) {// the whole part shape is selected + if (!theSubShape.get() || theSubShape->isNull()) {// the whole part shape is selected aShape = theContext->shape()->impl(); } else { aShape = theSubShape->impl(); -- 2.39.2