From: Artem Zhidkov Date: Tue, 19 May 2020 04:38:54 +0000 (+0300) Subject: Make filter "On line" applicable to use axis as an argument. X-Git-Tag: V9_5_0rc1~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e8d43f0f31e00aa2162aa2677f636febcc84c311;p=modules%2Fshaper.git Make filter "On line" applicable to use axis as an argument. --- diff --git a/src/FiltersPlugin/FiltersPlugin_OnLine.cpp b/src/FiltersPlugin/FiltersPlugin_OnLine.cpp index 7f7316ada..3f8cbe5f6 100644 --- a/src/FiltersPlugin/FiltersPlugin_OnLine.cpp +++ b/src/FiltersPlugin/FiltersPlugin_OnLine.cpp @@ -31,7 +31,10 @@ static void convertToLines(const AttributeSelectionListPtr& theSelected, std::list& 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)