]> granicus.if.org Git - graphviz/commitdiff
small adjustment in vertical postion of html label text
authorellson <devnull@localhost>
Sat, 4 Mar 2006 03:43:47 +0000 (03:43 +0000)
committerellson <devnull@localhost>
Sat, 4 Mar 2006 03:43:47 +0000 (03:43 +0000)
lib/common/htmltable.c

index e578ee829f1f963ac48ff006718e4f94fb69393c..61e02ff74ca926c5f2e34166182d11f6615566d3 100644 (file)
@@ -176,8 +176,8 @@ emit_htextlines(GVJ_t* job, int nlines, htextline_t* lines, pointf p,
        }
 
        if (i == 0) {
-           p_.y = p.y + (double)(b.UR.y-b.LL.y)/2 - lines[i].lfsize;
-           tmp = ROUND(p_.y);  /* align with interger points */
+           p_.y = p.y + (double)(b.UR.y-b.LL.y)/2 - lines[i].lfsize * 0.9 ;
+           tmp = ROUND(p_.y);  /* align with integer points */
            p_.y = (double)tmp;
        }