From: azv Date: Thu, 23 Apr 2015 05:34:43 +0000 (+0300) Subject: Issue #484: Fix the crash while making extrusion from python script X-Git-Tag: V_1.2.0~110^2~3^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a2b76ad7df0d65eb895238dfc8939494b3875968;p=modules%2Fshaper.git Issue #484: Fix the crash while making extrusion from python script --- diff --git a/src/SketchSolver/SketchSolver_Constraint.cpp b/src/SketchSolver/SketchSolver_Constraint.cpp index 4e815d649..ce0fc9797 100644 --- a/src/SketchSolver/SketchSolver_Constraint.cpp +++ b/src/SketchSolver/SketchSolver_Constraint.cpp @@ -333,8 +333,10 @@ Slvs_hEntity SketchSolver_Constraint::changeEntity(AttributeRefAttrPtr theAttrib Slvs_hEntity SketchSolver_Constraint::changeEntity(AttributePtr theEntity, int& theType) { Slvs_hEntity aResult = SLVS_E_UNKNOWN; - if (!theEntity || !isInitialized(theEntity)) + if (!theEntity || !isInitialized(theEntity)) { + myErrorMsg = SketchSolver_Error::NOT_INITIALIZED(); return SLVS_E_UNKNOWN; + } // If the entity is already in the group, try to find it std::map, Slvs_hEntity>::const_iterator anEntIter =