Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update SketchBuilder to work on faces with holes (issue #1320)
[modules/shaper.git]
/
src
/
ModelAPI
/
ModelAPI_Object.cpp
diff --git
a/src/ModelAPI/ModelAPI_Object.cpp
b/src/ModelAPI/ModelAPI_Object.cpp
index dc76a0792dd2d925653ae077e039dc740bce4ec9..b3f2671c92592aa359da6a0ebd1c4d756742f803 100644
(file)
--- a/
src/ModelAPI/ModelAPI_Object.cpp
+++ b/
src/ModelAPI/ModelAPI_Object.cpp
@@
-68,7
+68,8
@@
void ModelAPI_Object::setDoc(std::shared_ptr<ModelAPI_Document> theDoc)
void ModelAPI_Object::erase()
{
- if (myData->isValid() && myData != myData->invalidPtr()) myData->erase();
+ if (myData->isValid() && myData != myData->invalidPtr())
+ myData->erase();
setData(myData->invalidPtr());
}