From e8d43f0f31e00aa2162aa2677f636febcc84c311 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Tue, 19 May 2020 07:38:54 +0300 Subject: [PATCH] Make filter "On line" applicable to use axis as an argument. --- src/FiltersPlugin/FiltersPlugin_OnLine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.2