]> granicus.if.org Git - graphviz/commitdiff
Put back inadvertently deleted code for TOP case for flat edges.
authorerg <devnull@localhost>
Tue, 21 Jun 2005 23:04:03 +0000 (23:04 +0000)
committererg <devnull@localhost>
Tue, 21 Jun 2005 23:04:03 +0000 (23:04 +0000)
lib/common/splines.c

index 11fe65d1c03887e043ae981bdb0948c0c503a28e..6364853b3640fbc07bd5d92ba013c5272ab773e1 100644 (file)
@@ -491,7 +491,9 @@ beginpath(path * P, edge_t * e, int et, pathend_t * endp, boolean merge)
            endp->boxn = 1;
            break;
        case TOP:
-           abort();
+           b.LL.y = MIN(b.LL.y,P->end.p.y);
+           endp->boxes[0] = b;
+           endp->boxn = 1;
            break;
        case BOTTOM:
            if (endp->sidemask == TOP) {
@@ -672,7 +674,9 @@ void endpath(path * P, edge_t * e, int et, pathend_t * endp, boolean merge)
            endp->boxn = 1;
            break;
        case TOP:
-           abort();
+           b.LL.y = MIN(b.LL.y,P->end.p.y);
+           endp->boxes[0] = b;
+           endp->boxn = 1;
            break;
        case BOTTOM:
            if (endp->sidemask == TOP) {