From 82cbbe390ce538d57791d8bd6f546c3fd0d6b0e5 Mon Sep 17 00:00:00 2001 From: Adeel Asghar Date: Fri, 2 Feb 2024 17:12:51 +0100 Subject: [PATCH] Do not redraw the hidden conditional port (#11938) --- OMEdit/OMEditLIB/Element/Element.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OMEdit/OMEditLIB/Element/Element.cpp b/OMEdit/OMEditLIB/Element/Element.cpp index c8e082f8233..91c7d2f97b5 100644 --- a/OMEdit/OMEditLIB/Element/Element.cpp +++ b/OMEdit/OMEditLIB/Element/Element.cpp @@ -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); }