]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make filter "On line" applicable to use axis as an argument.
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Tue, 19 May 2020 04:38:54 +0000 (07:38 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Tue, 19 May 2020 04:38:54 +0000 (07:38 +0300)
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)