]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FiltersPlugin/FiltersPlugin_OnLine.cpp
Salome HOME
Make filter "On line" applicable to use axis as an argument.
[modules/shaper.git] / src / FiltersPlugin / FiltersPlugin_OnLine.cpp
index 7f7316ada1a5738776006b1ea43a46531c0b6197..3f8cbe5f6b03c108b93bcabb2f490d74fc39bbec 100644 (file)
@@ -31,7 +31,10 @@ static void convertToLines(const AttributeSelectionListPtr& theSelected,
                            std::list<GeomLinePtr>& theLines)
 {
   for (int i = 0; i < theSelected->size(); i++) {
-    GeomShapePtr aCurShape = theSelected->value(i)->value();
+    AttributeSelectionPtr aSel = theSelected->value(i);
+    GeomShapePtr aCurShape = aSel->value();
+    if (!aCurShape)
+      aCurShape = aSel->context()->shape();
     if (aCurShape && aCurShape->isEdge()) {
       GeomLinePtr aLine = aCurShape->edge()->line();
       if (aLine)