Skip to content

Commit

Permalink
+ fixes #1413: Part.Shape.transformGeometry on Null Shape causes SIGSEGV
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Feb 15, 2014
1 parent cc033f8 commit 1be3308
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Part/App/FeatureMirroring.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 1be3308

Please sign in to comment.