]> granicus.if.org Git - graphviz/commitdiff
Fixed problem with cluster gradient angle
authorDwight Perry <dperry@research.att.com>
Fri, 20 Jan 2012 20:34:10 +0000 (15:34 -0500)
committerDwight Perry <dperry@research.att.com>
Fri, 20 Jan 2012 20:34:10 +0000 (15:34 -0500)
lib/common/emit.c

index 607cbd192bfc9e273824d3e736bc7c34e3246e5a..572b29d2d708f9b28914fc5f8ba101eb42d9c0b9 100644 (file)
@@ -3281,7 +3281,7 @@ void emit_clusters(GVJ_t * job, Agraph_t * g, int flags)
        if (!pencolor) pencolor = DEFAULT_COLOR;
        if (!fillcolor) fillcolor = DEFAULT_FILL;
        if (gradient > 0) {  //handles both linear and radial gradients
-         gvrender_set_gradient(job,sg,fillcolor,findGradientAngle(g,G_gradientangle));
+         gvrender_set_gradient(job,sg,fillcolor,findGradientAngle(sg,G_gradientangle));
        } 
 
 #ifndef WITH_CGRAPH