Skip to content

Commit

Permalink
App::Link: fix crash with Draft Array (FreeCAD#16240)
Browse files Browse the repository at this point in the history
* App::Link: fix crash with Draft Array
  • Loading branch information
PaddleStroke authored Sep 8, 2024
1 parent 2383ba7 commit 858ae45
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Gui/ViewProviderLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,12 @@ bool LinkView::linkGetElementPicked(const SoPickedPoint *pp, std::string &subnam
}

auto &info = *nodeArray[nodeIdx];
ss << info.linkInfo->getLinkedName() << '.';
if (!info.linkInfo) {
ss << it->second << '.';
}
else {
ss << info.linkInfo->getLinkedName() << '.';
}

if(info.isLinked()) {
if (!info.linkInfo->getElementPicked(false, childType, pp, ss)) {
Expand Down

0 comments on commit 858ae45

Please sign in to comment.