}
GeomPnt2dPtr aSelectedPoint = PartSet_Tools::getPnt2d(aView, aSelectedShape, mySketch);
- if (aSelectedPoint) {
- // nullify selected object to add reference to attribute instead of its owner
- aSelectedObject = ObjectPtr();
- }
- else {
+ if (!aSelectedPoint) {
aSelectedPoint = PartSet_Tools::getPnt2d(theEvent, theWindow, mySketch);
setValueState(Stored); // in case of edge selection, Apply state should also be updated
}
void PlaneGCSSolver_Storage::removeParameters(const GCS::SET_pD& theParams)
{
mySketchSolver->removeParameters(theParams);
- for (GCS::SET_pD::iterator it = theParams.begin(); it != theParams.end(); ++it)
- delete *it;
+ //for (GCS::SET_pD::iterator it = theParams.begin(); it != theParams.end(); ++it)
+ // delete *it;
}
// indicates attribute containing in the external feature