]> granicus.if.org Git - graphviz/commitdiff
remove shadowing of view in glexpose_drawgraph
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 18 Apr 2021 23:45:57 +0000 (16:45 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Apr 2021 18:58:20 +0000 (11:58 -0700)
cmd/smyrna/glexpose.c

index 0d4b5a73663d1ad7892388477a1e4afb0a80b535..2ec45b2df72e975befe4418910792baea4d3d15b 100644 (file)
@@ -134,14 +134,14 @@ static void glexpose_grid(ViewInfo * vi)
        params:ViewInfo , global view variable defined in viewport.c
        return value:1 if there is a graph to draw else 0 
 */
-static int glexpose_drawgraph(ViewInfo * view)
+static int glexpose_drawgraph(ViewInfo * vi)
 {
 
-    if (view->activeGraph > -1) {
-       if (!view->Topview->fisheyeParams.active)
-           renderSmGraph(view->g[view->activeGraph],view->Topview);        
+    if (vi->activeGraph > -1) {
+       if (!vi->Topview->fisheyeParams.active)
+           renderSmGraph(vi->g[vi->activeGraph],vi->Topview);
        else {
-           drawtopologicalfisheye(view->Topview);
+           drawtopologicalfisheye(vi->Topview);
        }
 
        return 1;