+ fixes #0001413: Part.Shape.transformGeometry on Null Shape causes SIGSEGV

This commit is contained in:
wmayer 2014-02-15 19:54:15 +01:00
parent cc033f8d30
commit 1be3308c21

View File

@ -85,6 +85,8 @@ App::DocumentObjectExecReturn *Mirroring::execute(void)
try {
const TopoDS_Shape& shape = source->Shape.getValue();
if (shape.IsNull())
Standard_Failure::Raise("Cannot mirroR empty shape");
gp_Ax2 ax2(gp_Pnt(base.x,base.y,base.z), gp_Dir(norm.x,norm.y,norm.z));
gp_Trsf mat;
mat.SetMirror(ax2);