X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBuildPlugin%2FBuildPlugin_SubShapes.cpp;h=ebbe753ba399013a53324d0db56337176fe8d58c;hb=aee09da348319d21259bee81c45d00a08f657de0;hp=000fb19e34cb48c77d0abdb621c4ee4416f3ae9e;hpb=17e8650ef6b7eb406cdeab881802cf9fadc0750e;p=modules%2Fshaper.git diff --git a/src/BuildPlugin/BuildPlugin_SubShapes.cpp b/src/BuildPlugin/BuildPlugin_SubShapes.cpp index 000fb19e3..ebbe753ba 100644 --- a/src/BuildPlugin/BuildPlugin_SubShapes.cpp +++ b/src/BuildPlugin/BuildPlugin_SubShapes.cpp @@ -42,10 +42,11 @@ void BuildPlugin_SubShapes::attributeChanged(const std::string& theID) if(!aShapeAttrSelection.get() || !aSubShapesAttrList.get()) { return; } - ResultPtr aContext = aShapeAttrSelection->context(); aSubShapesAttrList->clear(); + ResultPtr aContext = aShapeAttrSelection->context(); + GeomShapePtr aBaseShape = aShapeAttrSelection->value(); if(!aBaseShape.get()) { return; @@ -103,7 +104,7 @@ void BuildPlugin_SubShapes::execute() // Copy sub-shapes from list to new shape. if(!aShapesToAdd.empty()) { - aBuilder.add(aResultShape, aShapesToAdd); + aBuilder.addInternal(aResultShape, aShapesToAdd); aResultShape = aBuilder.shape(); }