]> granicus.if.org Git - graphviz/commitdiff
some missed changes
authorellson <devnull@localhost>
Mon, 22 May 2006 13:14:00 +0000 (13:14 +0000)
committerellson <devnull@localhost>
Mon, 22 May 2006 13:14:00 +0000 (13:14 +0000)
lib/common/gdgen.c

index 944020592ab95e5695d4a25c00a946633d32ce98..f68f0678782f81eacb3baa919daab9fce22e1dd9 100644 (file)
@@ -576,15 +576,15 @@ static void gd_textline(point p, textline_t * line)
        mp.x = p.x;
        break;
     case 'r':
-       mp.x = p.x - line->width;
+       mp.x = p.x - line->dimen.x;
        break;
     default:
     case 'n':
-       mp.x = p.x - line->width / 2;
+       mp.x = p.x - line->dimen.x / 2;
        break;
     }
     ep.y = mp.y = p.y;
-    ep.x = mp.x + line->width;
+    ep.x = mp.x + line->dimen.x;
 
     mp = gdpt(mp);
     if (fontsz <= FONTSIZE_MUCH_TOO_SMALL) {