]> granicus.if.org Git - graphviz/commitdiff
Fix bug where compare was used instead of assignment.
authorerg <devnull@localhost>
Thu, 10 Apr 2008 17:29:17 +0000 (17:29 +0000)
committererg <devnull@localhost>
Thu, 10 Apr 2008 17:29:17 +0000 (17:29 +0000)
cmd/smyrna/viewport.c

index a2553ae9032a49aa9eb3e56cdb2918018089412b..6d996fed4a9039988244bbaaf849e76e1fd37e55 100755 (executable)
@@ -355,7 +355,7 @@ static void load_graph_params(Agraph_t * graph)
     //file may or may have not gl edit attributes
     //first defaults are set in loading function
     //here file is checked for previously saved gledit attributes
-    if ((s == agget(graph, "GraphName")))      //Graph Name
+    if ((s = agget(graph, "GraphName")))       //Graph Name
     {
        GD_GraphName(graph) = N_GNEW(strlen(s)+1,char);
        strcpy(GD_GraphName(graph), s);