]> granicus.if.org Git - graphviz/commitdiff
Fix bug 2458
authorEmden R. Gansner <erg@alum.mit.edu>
Fri, 23 May 2014 16:12:04 +0000 (12:12 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Fri, 23 May 2014 16:12:04 +0000 (12:12 -0400)
lib/common/htmltable.c

index 86e5d356289b817faadfb481eb15ffbf1d98d26f..3a1b3131227944f9a11b7ba915a5c364a7631b48 100644 (file)
@@ -213,7 +213,7 @@ static void doSide(GVJ_t * job, pointf p, double wd, double ht)
 /* mkPts:
  * Convert boxf into four corner points
  * If border is > 1, inset the points by half the border.
- * It is assume AF is pointf[4], so the data is store there
+ * It is assumed AF is pointf[4], so the data is store there
  * and AF is returned.
  */
 static pointf *mkPts(pointf * AF, boxf b, int border)
@@ -243,7 +243,7 @@ static pointf *mkPts(pointf * AF, boxf b, int border)
  */
 static void doBorder(GVJ_t * job, htmldata_t * dp, boxf b)
 {
-    pointf AF[6];
+    pointf AF[7];
     char *sptr[2];
     char *color = (dp->pencolor ? dp->pencolor : DEFAULT_COLOR);
     unsigned short sides;
@@ -263,7 +263,7 @@ static void doBorder(GVJ_t * job, htmldata_t * dp, boxf b)
     if (dp->style & ROUNDED)
        round_corners(job, mkPts(AF, b, dp->border), 4, ROUNDED, 0);
     else if ((sides = (dp->flags & BORDER_MASK))) {
-       mkPts (AF+1, b, dp->border);  /* AF[1-4] has LL=SW,SW,UR=NE,NW */
+       mkPts (AF+1, b, dp->border);  /* AF[1-4] has LL=SW,SE,UR=NE,NW */
        switch (sides) {
        case BORDER_BOTTOM :
            gvrender_polyline(job, AF+1, 2);