X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_MakeShapeCustom.cpp;h=7e3985d25d6a1a9e200d1c607392382bd1c0d693;hb=87f348fe7ec3805441bd5524536736eeb2e87501;hp=318f9b6e5b01afbfdab97825fab51dcfa488bc16;hpb=952efeb621c89406b5b4b2a7173ad42de4034fa8;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeCustom.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeCustom.cpp index 318f9b6e5..7e3985d25 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeCustom.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShapeCustom.cpp @@ -8,13 +8,12 @@ //================================================================================================= GeomAlgoAPI_MakeShapeCustom::GeomAlgoAPI_MakeShapeCustom() -: GeomAlgoAPI_MakeShape() {} //================================================================================================= void GeomAlgoAPI_MakeShapeCustom::setResult(const std::shared_ptr theShape) { - myShape = theShape; + setShape(theShape); } //================================================================================================= @@ -37,19 +36,14 @@ bool GeomAlgoAPI_MakeShapeCustom::addDeleted(const std::shared_ptr GeomAlgoAPI_MakeShapeCustom::shape() const -{ - return myShape; -} - //================================================================================================= void GeomAlgoAPI_MakeShapeCustom::generated(const std::shared_ptr theShape, ListOfShape& theHistory) { ListOfShape aGenerated; - myGenerated.find(theShape, aGenerated); - theHistory.insert(theHistory.end(), aGenerated.begin(), aGenerated.end()); + if(myGenerated.find(theShape, aGenerated)) { + theHistory.insert(theHistory.end(), aGenerated.begin(), aGenerated.end()); + } } //================================================================================================= @@ -57,8 +51,9 @@ void GeomAlgoAPI_MakeShapeCustom::modified(const std::shared_ptr ListOfShape& theHistory) { ListOfShape aModified; - myModified.find(theShape, aModified); - theHistory.insert(theHistory.end(), aModified.begin(), aModified.end()); + if(myModified.find(theShape, aModified)) { + theHistory.insert(theHistory.end(), aModified.begin(), aModified.end()); + } } //=================================================================================================