Index: dsn.c =================================================================== --- dsn.c (revision 35225) +++ dsn.c (revision 35226) @@ -263,7 +263,8 @@ /* parse the tree: find wiring */ - clear = PCB->RouteStyle.array[0].Clearance * 2; + if (PCB->RouteStyle.used > 0) + clear = PCB->RouteStyle.array[0].Clearance * 2; if (strcmp(dom.root->str, "PCB") == 0) type = TYPE_PCB; else if (strcmp(dom.root->str, "session") == 0)