Fixed handling of internal signals in show command
authorClifford Wolf <clifford@clifford.at>
Sun, 24 Mar 2013 14:15:28 +0000 (15:15 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 24 Mar 2013 14:15:28 +0000 (15:15 +0100)
kernel/show.cc

index 22e2109fff366af43e746320c360310452eb7ffd..942f5b264997686eb5cfe0401078e0e01fa4c645 100644 (file)
@@ -201,14 +201,14 @@ struct ShowWorker
                        const char *shape = "diamond";
                        if (it.second->port_input || it.second->port_output)
                                shape = "octagon";
-                       if (it.first[0] == '\\')
+                       if (it.first[0] == '\\') {
                                fprintf(f, "n%d [ shape=%s, label=\"%s\" ];\n",
                                                id2num(it.first), shape, escape(it.first));
                                if (it.second->port_input)
                                        all_sources.insert(stringf("n%d", id2num(it.first)));
                                else if (it.second->port_output)
                                        all_sinks.insert(stringf("n%d", id2num(it.first)));
-                       else {
+                       else {
                                wires_on_demand[stringf("n%d", id2num(it.first))] = it.first;
                        }
                }