]> granicus.if.org Git - graphviz/commitdiff
use "nojustify" to suppress horizontal justification only. don't affect labelloc
authorellson <devnull@localhost>
Tue, 4 Mar 2008 04:28:12 +0000 (04:28 +0000)
committerellson <devnull@localhost>
Tue, 4 Mar 2008 04:28:12 +0000 (04:28 +0000)
lib/common/shapes.c

index 1e8e34e89113d2e4ac2a2341bfa9cdddbb899944..13bfb24064e4dc98e040fdcaff8138624dab0601 100644 (file)
@@ -842,15 +842,15 @@ static void poly_init(node_t * n)
     if (!mapbool(late_string(n, N_nojustify, "false"))) {
        if (width > dimen.x)
            ND_label(n)->d.x = width - dimen.x;
-       if (height > dimen.y) {
-           p = agget(n, "labelloc");
-            if (p && (p[0] == 'b'))
-               ND_label(n)->d.y = -(height - dimen.y);
-           else if (p && (p[0] == 't'))
-               ND_label(n)->d.y = height - dimen.y;
-           else
-               ND_label(n)->d.y = 0;
-       }
+    }
+    if (height > dimen.y) {
+       p = agget(n, "labelloc");
+        if (p && (p[0] == 'b'))
+           ND_label(n)->d.y = -(height - dimen.y);
+       else if (p && (p[0] == 't'))
+           ND_label(n)->d.y = height - dimen.y;
+       else
+           ND_label(n)->d.y = 0;
     }
 
     /* increase node size to width/height if needed */