]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Union of validator and filter functionalities.
authornds <natalia.donis@opencascade.com>
Wed, 25 Mar 2015 08:12:49 +0000 (11:12 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 25 Mar 2015 08:12:49 +0000 (11:12 +0300)
An attempt to remove external objects, created by moving over the line/edges from another sketch.

src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp

index 0cf9b6e44299bc9c7f0ebd1fceacd12d1b4d9d8d..7fc40261487056aa53dd9085efdb0b54e9cc8d69 100644 (file)
@@ -395,11 +395,11 @@ void ModuleBase_WidgetShapeSelector::backupAttributeValue(const bool isBackup)
         aRefAttr->setAttr(myRefAttribute);
     }
     if (myExternalObject.get()) {
-      /*DocumentPtr aDoc = myExternalObject->document();
+      DocumentPtr aDoc = myExternalObject->document();
       FeaturePtr aFeature = ModelAPI_Feature::feature(myExternalObject);
       if (aFeature.get() != NULL) {
         aDoc->removeFeature(aFeature);
-      }*/
+      }
     }
   }
 }