Skip to content

Commit

Permalink
removed catch (...) in Drawing
Browse files Browse the repository at this point in the history
which discarded type information when rethrowing base type
  • Loading branch information
5263 authored and wwmayer committed Sep 17, 2014
1 parent 5e51a6c commit 1b1d801
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/Mod/Drawing/App/ProjectionAlgos.cpp
Expand Up @@ -139,16 +139,11 @@ void ProjectionAlgos::execute(void)
Handle( HLRBRep_Algo ) brep_hlr = new HLRBRep_Algo;
brep_hlr->Add(Input);

try {
gp_Ax2 transform(gp_Pnt(0,0,0),gp_Dir(Direction.x,Direction.y,Direction.z));
HLRAlgo_Projector projector( transform );
brep_hlr->Projector(projector);
brep_hlr->Update();
brep_hlr->Hide();
}
catch (...) {
Standard_Failure::Raise("Fatal error occurred while projecting shape");
}
gp_Ax2 transform(gp_Pnt(0,0,0),gp_Dir(Direction.x,Direction.y,Direction.z));
HLRAlgo_Projector projector( transform );
brep_hlr->Projector(projector);
brep_hlr->Update();
brep_hlr->Hide();

// extracting the result sets:
HLRBRep_HLRToShape shapes( brep_hlr );
Expand Down

0 comments on commit 1b1d801

Please sign in to comment.