-// Copyright (C) 2014-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
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)