From 9331c2a677e76d6387c21990456a12951fd332b0 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Wed, 1 Jul 2015 21:35:04 +0300 Subject: [PATCH] Attacher: fix crash of suggestor on compounds --- src/Mod/Part/App/Attacher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/App/Attacher.cpp b/src/Mod/Part/App/Attacher.cpp index 0af157ff1c..7a08f8ff7e 100644 --- a/src/Mod/Part/App/Attacher.cpp +++ b/src/Mod/Part/App/Attacher.cpp @@ -293,7 +293,7 @@ eRefType AttachEngine::getShapeType(const TopoDS_Shape& sh) return rtSolid; break; case TopAbs_COMPOUND:{ - TopoDS_Compound cmpd = TopoDS::Compound(cmpd); + const TopoDS_Compound &cmpd = TopoDS::Compound(sh); TopoDS_Iterator it (cmpd, Standard_False, Standard_False);//don't mess with placements, to hopefully increase speed if (! it.More()) return rtAnything;//empty compound const TopoDS_Shape &sh1 = it.Value();