Index: trunk/src_plugins/lib_netmap/map_2nets.c =================================================================== --- trunk/src_plugins/lib_netmap/map_2nets.c (revision 34988) +++ trunk/src_plugins/lib_netmap/map_2nets.c (revision 34989) @@ -61,9 +61,12 @@ if (seg == NULL) return; + ns = calloc(sizeof(pcb_2netmap_iseg_t), 1); - ns->next = map->isegs; - map->isegs = ns; + if (!seg->has_invalid_hub) { + ns->next = map->isegs; + map->isegs = ns; + } ns->seg = seg; ns->net = NULL; @@ -79,7 +82,8 @@ printf(" NULL\n"); continue; } - htpp_set(&map->o2n, *o, ns); + if (!seg->has_invalid_hub) + htpp_set(&map->o2n, *o, ns); printf(" #%ld\n", (*o)->ID); if ((*o)->term != NULL) { @@ -91,6 +95,13 @@ } } } + + if (seg->has_invalid_hub) { + rnd_message(RND_MSG_ERROR, "Network %s can not be included in the net map due to invalid junction\n", ns->net->name); + pcb_qry_lenseg_free_fields(seg); + free(ns); + return; + } } static void list_line_cb(void *ctx, pcb_board_t *pcb, pcb_layer_t *layer, pcb_line_t *line)