From 00b671e3706cacf0b28b015ad1cd34441707defe Mon Sep 17 00:00:00 2001 From: Wanderer Fan Date: Thu, 28 Jul 2022 19:53:05 -0400 Subject: [PATCH] [TD]fix projectShape for shape outline --- src/Mod/TechDraw/App/GeometryObject.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/App/GeometryObject.cpp b/src/Mod/TechDraw/App/GeometryObject.cpp index f71af6c339..09adc63f6b 100644 --- a/src/Mod/TechDraw/App/GeometryObject.cpp +++ b/src/Mod/TechDraw/App/GeometryObject.cpp @@ -256,11 +256,16 @@ void GeometryObject::projectShape(const TopoDS_Shape& inShape, } //convert the hlr output into TD Geometry - const DrawViewPart* dvp = static_cast(m_parent); extractGeometry(TechDraw::ecHARD, //always show the hard&outline visible lines true); extractGeometry(TechDraw::ecOUTLINE, true); + + const DrawViewPart* dvp = static_cast(m_parent); + if (!dvp) { + return; //some routines do not have a dvp (ex shape outline) + } + if (dvp->SmoothVisible.getValue()) { extractGeometry(TechDraw::ecSMOOTH, true);