Skip to content

Commit

Permalink
Do not redraw the hidden conditional port (#11938)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Feb 2, 2024
1 parent 45ebb20 commit 82cbbe3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OMEdit/OMEditLIB/Element/Element.cpp
Expand Up @@ -2266,6 +2266,11 @@ void Element::reDrawConnector(QPainter *painter)
painter->restore();
}

// Skip when condition is false
if (!isCondition()) {
return;
}

foreach (Element *pInheritedElement, mInheritedElementsList) {
pInheritedElement->reDrawConnector(painter);
}
Expand Down

0 comments on commit 82cbbe3

Please sign in to comment.