Fixed/improved handling of colored wires in show command
authorClifford Wolf <clifford@clifford.at>
Mon, 1 Apr 2013 12:58:43 +0000 (14:58 +0200)
committerClifford Wolf <clifford@clifford.at>
Mon, 1 Apr 2013 12:58:43 +0000 (14:58 +0200)
kernel/show.cc

index 8855c8098f9d595139d287c90fd734b4327b90d5..572ba589678f4929d1b9ade596a74ec7822a5bd2 100644 (file)
@@ -182,12 +182,12 @@ struct ShowWorker
                                        label_string += stringf("<s%d> %d:%d - %d:%d |", i, pos, pos-c.width+1, c.offset+c.width-1, c.offset);
                                        net_conn_map[net].in.insert(stringf("x%d:s%d", idx, i));
                                        net_conn_map[net].bits = c.width;
-                                       net_conn_map[net].color = nextColor(sig, net_conn_map[net].color);
+                                       net_conn_map[net].color = nextColor(c, net_conn_map[net].color);
                                } else {
                                        label_string += stringf("<s%d> %d:%d - %d:%d |", i, c.offset+c.width-1, c.offset, pos, pos-c.width+1);
                                        net_conn_map[net].out.insert(stringf("x%d:s%d", idx, i));
                                        net_conn_map[net].bits = c.width;
-                                       net_conn_map[net].color = nextColor(sig, net_conn_map[net].color);
+                                       net_conn_map[net].color = nextColor(c, net_conn_map[net].color);
                                }
                                pos -= c.width;
                        }