]> granicus.if.org Git - graphviz/commitdiff
smyrna close_graph: remove shadowing of 'view' global
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Dec 2022 05:26:37 +0000 (21:26 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 19:42:15 +0000 (11:42 -0800)
cmd/smyrna/viewport.c

index 961f2722a6325fe7b8bf29ca7f51a2b58a0794b2..666c8fab7625b7a139a3ea772bf3366859e3f5e2 100644 (file)
@@ -70,10 +70,10 @@ static void *get_glut_font(int ind)
 
 }
 
-void close_graph(ViewInfo *view) {
-    if (view->activeGraph < 0)
+void close_graph(ViewInfo *vi) {
+    if (vi->activeGraph < 0)
        return;
-    clear_viewport(view);
+    clear_viewport(vi);
 }
 
 char *get_attribute_value(char *attr, ViewInfo * view, Agraph_t * g)