]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #484: Fix the crash while making extrusion from python script
authorazv <azv@opencascade.com>
Thu, 23 Apr 2015 05:34:43 +0000 (08:34 +0300)
committerazv <azv@opencascade.com>
Thu, 23 Apr 2015 05:34:43 +0000 (08:34 +0300)
src/SketchSolver/SketchSolver_Constraint.cpp

index 4e815d649a632a0c73132394dc7aa998f0b569cb..ce0fc9797ba9ebba75042cc6369036538ab758d9 100644 (file)
@@ -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<std::shared_ptr<ModelAPI_Attribute>, Slvs_hEntity>::const_iterator anEntIter =