Fix crash when Source.Shape is Null

This commit is contained in:
WandererFan
2017-12-23 13:56:00 -05:00
committed by wmayer
parent 553fa64ec4
commit 55f050e0f5
2 changed files with 21 additions and 16 deletions

View File

@@ -202,6 +202,7 @@ App::DocumentObjectExecReturn *DrawViewSection::execute(void)
TopoDS_Shape baseShape = static_cast<TechDraw::DrawViewPart*>(base)->getSourceShapeFused();
if (baseShape.IsNull()) {
Base::Console().Log("DVS::execute - baseShape is Null\n");
return new App::DocumentObjectExecReturn("BaseView Source object is Null");
}
//is SectionOrigin valid?