Skip to content

Commit

Permalink
Part: fix potential crash on Feature::getExportElementName()
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Aug 25, 2024
1 parent aa06aef commit 2764dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Part/App/PartFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Feature::getExportElementName(TopoShape shape, const char *name) const
for (auto &ss : subshape.getSubTopoShapes(lower)) {
auto name = ss.getMappedName(idxName);
if (!name) continue;
indices.emplace_back(name.size(), shape.findAncestors(ss.getShape(), res.first));
indices.emplace_back(names.size(), shape.findAncestors(ss.getShape(), res.first));
names.push_back(name);
if (indices.back().second.size() == 1 && ++count >= MinLowerTopoNames)
break;
Expand Down

0 comments on commit 2764dd9

Please sign in to comment.