App::Link: fix crash with Draft Array (#16240)

* App::Link: fix crash with Draft Array
This commit is contained in:
PaddleStroke
2024-09-09 00:12:55 +02:00
committed by GitHub
parent 4b77c189eb
commit fb509154ab

View File

@@ -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)) {