]> granicus.if.org Git - graphviz/commitdiff
label locations fixed to center of nodes
authorarif <devnull@localhost>
Wed, 14 Apr 2010 20:20:29 +0000 (20:20 +0000)
committerarif <devnull@localhost>
Wed, 14 Apr 2010 20:20:29 +0000 (20:20 +0000)
cmd/smyrna/topviewfuncs.c

index 7cd21c572d4cda84897e6c61bb08bdd5105fc14d..6fbfeff3e7240fc58b036a8437f1b9d24fc14d1c 100644 (file)
@@ -307,7 +307,7 @@ void renderSelectedNodes(Agraph_t * g)
        if (ND_printLabel(v)==1)
        {
            glColor4f(c.R, c.G,c.B, c.A);
-           glprintfglut(view->glutfont,pos.x+nodeSize,pos.y+nodeSize,pos.z,agnameof(v));
+           glprintfglut(view->glutfont,pos.x,pos.y,pos.z,agnameof(v));
        }
 
     }
@@ -525,9 +525,9 @@ void renderNodeLabels(Agraph_t * g)
        nodeSize = ND_size(v);
        glColor4f(c.R,c.G,c.B,c.A);
        if(!data_attr)
-            glprintfglut(view->glutfont,pos.x+nodeSize,pos.y+nodeSize,pos.z,agnameof(v));
+            glprintfglut(view->glutfont,pos.x,pos.y,pos.z,agnameof(v));
        else
-           glprintfglut(view->glutfont,pos.x+nodeSize,pos.y+nodeSize,pos.z,agxget(v,data_attr));
+           glprintfglut(view->glutfont,pos.x,pos.y,pos.z,agxget(v,data_attr));
     }
 }