Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89b2089
)
Issue #484: Fix the crash while making extrusion from python script
author
azv
<azv@opencascade.com>
Thu, 23 Apr 2015 05:34:43 +0000
(08:34 +0300)
committer
azv
<azv@opencascade.com>
Thu, 23 Apr 2015 05:34:43 +0000
(08:34 +0300)
src/SketchSolver/SketchSolver_Constraint.cpp
patch
|
blob
|
history
diff --git
a/src/SketchSolver/SketchSolver_Constraint.cpp
b/src/SketchSolver/SketchSolver_Constraint.cpp
index 4e815d649a632a0c73132394dc7aa998f0b569cb..ce0fc9797ba9ebba75042cc6369036538ab758d9 100644
(file)
--- 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<std::shared_ptr<ModelAPI_Attribute>, Slvs_hEntity>::const_iterator anEntIter =