From 73e19821544e0c848dd95136aac3c8d3b3987455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Tue, 14 Jul 2015 06:28:10 +0200 Subject: [PATCH] fix datum crash when origin is selected --- src/Mod/Part/App/Attacher.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Part/App/Attacher.cpp b/src/Mod/Part/App/Attacher.cpp index 0fcd218667..bc2833098b 100644 --- a/src/Mod/Part/App/Attacher.cpp +++ b/src/Mod/Part/App/Attacher.cpp @@ -351,6 +351,9 @@ void AttachEngine::EnableAllSupportedModes() eRefType AttachEngine::getShapeType(const TopoDS_Shape& sh) { + if(sh.IsNull()) + return rtAnything; + switch (sh.ShapeType()){ case TopAbs_SHAPE: return rtAnything; //note: there's no rtPart detection here - not enough data!