controls/DebugVariablePanel/DebugVariablePanel.py
changeset 1878 fb73a6b6622d
parent 1859 1df77c809257
child 1965 f77bc4fdc73c
--- a/controls/DebugVariablePanel/DebugVariablePanel.py	Thu Oct 19 10:57:35 2017 +0300
+++ b/controls/DebugVariablePanel/DebugVariablePanel.py	Thu Oct 19 11:03:03 2017 +0300
@@ -847,10 +847,10 @@
             target_panel = self.GraphicPanels[target_idx]
             graph_type = target_panel.GraphType
             if target_panel != source_panel:
-                if (merge_type == GRAPH_PARALLEL and graph_type != merge_type or
-                    merge_type == GRAPH_ORTHOGONAL and
-                    (graph_type == GRAPH_PARALLEL and len(target_panel.Items) > 1 or
-                     graph_type == GRAPH_ORTHOGONAL and len(target_panel.Items) >= 3)):
+                if merge_type == GRAPH_PARALLEL and graph_type != merge_type or \
+                   merge_type == GRAPH_ORTHOGONAL and (
+                           graph_type == GRAPH_PARALLEL and len(target_panel.Items) > 1 or
+                           graph_type == GRAPH_ORTHOGONAL and len(target_panel.Items) >= 3):
                     return
 
                 if source_panel is not None: