path *P = NULL;
int useEdges = (Nop > 1);
router_t* rtr = 0;
+ int legal;
/* build configuration */
if (edgetype != ET_LINE) {
}
npoly = i;
if (obs) {
- if (Plegal_arrangement(obs, npoly)) {
+ if ((legal = Plegal_arrangement(obs, npoly))) {
if (edgetype != ET_ORTHO) vconfig = Pobsopen(obs, npoly);
}
else if (Verbose)
/* route edges */
if (Verbose)
fprintf(stderr, "Creating edges using %s\n",
- (edgetype == ET_ORTHO) ? "orthogonal lines" :
+ (legal && (edgetype == ET_ORTHO)) ? "orthogonal lines" :
(vconfig ? (edgetype == ET_SPLINE ? "splines" : "polylines") :
"line segments"));
if (vconfig) {
}
}
#ifdef ORTHO
- else if (edgetype == ET_ORTHO) {
+ else if (legal && (edgetype == ET_ORTHO)) {
orthoEdges (g, 0);
useEdges = 1;
}