Skip to content

Commit 9d455d7

Browse files
committed
added comment and formatted code
1 parent 0c1cf2f commit 9d455d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vpr/src/draw/draw_basic.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,8 @@ void draw_routed_net(ParentNetId net_id, ezgl::renderer* g) {
592592
draw_state->draw_rr_node[inode].color = DEFAULT_RR_NODE_COLOR;
593593
}
594594

595-
if(rr_nodes_to_draw.empty() && rt_node.parent().has_value()) {
595+
// When drawing a new branch, add the parent node to the vector to ensure that the conenction is drawn.
596+
if (rr_nodes_to_draw.empty() && rt_node.parent().has_value()) {
596597
rr_nodes_to_draw.push_back(rt_node.parent().value().inode);
597598
}
598599

0 commit comments

Comments
 (0)