if (hasPrevProj && !isValidProjectionType(aProjection, anEdge, aVertex)) {
DocumentPtr aDoc = sketch()->document();
if (hasPrevProj && !isValidProjectionType(aProjection, anEdge, aVertex)) {
DocumentPtr aDoc = sketch()->document();
std::set<FeaturePtr> aFeaturesToBeRemoved;
aFeaturesToBeRemoved.insert(aProjection);
ModelAPI_Tools::removeFeaturesAndReferences(aFeaturesToBeRemoved);
std::set<FeaturePtr> aFeaturesToBeRemoved;
aFeaturesToBeRemoved.insert(aProjection);
ModelAPI_Tools::removeFeaturesAndReferences(aFeaturesToBeRemoved);