}
-int close_graph(ViewInfo * view)
-{
+void close_graph(ViewInfo *view) {
if (view->activeGraph < 0)
- return 1;
+ return;
clear_viewport(view);
- return 1;
-
}
char *get_attribute_value(char *attr, ViewInfo * view, Agraph_t * g)
void refreshViewport(void);
int add_graph_to_viewport_from_file(char *fileName);
int add_graph_to_viewport(Agraph_t * graph, char *);
- int close_graph(ViewInfo * view);
+ void close_graph(ViewInfo * view);
int save_graph(void);
int save_graph_with_file_name(Agraph_t * graph, char *fileName);
int save_as_graph(void);