Skip to content

Commit

Permalink
Use the correct parent name of the connector (#12156)
Browse files Browse the repository at this point in the history
Fixes #12151
  • Loading branch information
adeas31 committed Mar 26, 2024
1 parent 3233a35 commit 62bda87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditLIB/Annotations/LineAnnotation.cpp
Expand Up @@ -2434,7 +2434,7 @@ QString CreateConnectionDialog::getElementConnectionName(GraphicsView *pGraphics
* Parent element can't be connectorSizing.
*/
if (pElement1->getParentElement()) {
elementName = pElement1->getParentElement()->getName();
elementName = pElement1->getRootParentElement()->getName();
if (pRootElement1->isArray()) {
QStringList rootElementIndexes = getElementIndexes(rootElementSpinBoxList1);
if (!rootElementIndexes.isEmpty()) {
Expand Down

0 comments on commit 62bda87

Please sign in to comment.