Salome HOME
Avoid crash if there is no parent of selection attribute.
[modules/shaper.git] / src / GeomValidators / GeomValidators_Plugin.cpp
index 3a0d06ee0cb125c88d2a3170077cc67ac5f05b1e..733fc17bf384b193aec4fecd1c625be21f950a84 100644 (file)
@@ -32,6 +32,7 @@
 #include <GeomValidators_FeatureKind.h>
 #include <GeomValidators_MinObjectsSelected.h>
 #include <GeomValidators_Intersected.h>
+#include <GeomValidators_NotSelfIntersected.h>
 
 #include <ModelAPI_Session.h>
 #include <ModelAPI_Validator.h>
@@ -61,6 +62,8 @@ GeomValidators_Plugin::GeomValidators_Plugin()
   aFactory->registerValidator("GeomValidators_MinObjectsSelected",
                               new GeomValidators_MinObjectsSelected);
   aFactory->registerValidator("GeomValidators_Intersected", new GeomValidators_Intersected);
+  aFactory->registerValidator("GeomValidators_NotSelfIntersected",
+                              new GeomValidators_NotSelfIntersected);
 
   // register this plugin
   ModelAPI_Session::get()->registerPlugin(this);