Commit f46477f1 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Create a new graph in QGVScene::clear

parent 5f88fcce
......@@ -207,7 +207,14 @@ void QGVScene::clear()
textlabel_t* label = GD_label(_graph->graph());
char* name = new char[strlen(label->text)+1];
strncpy(name, label->text, strlen(label->text)+1);
agclose (_graph->graph());
_graph->setGraph(agopen(name, Agdirected, NULL));
delete[] name;
_label = NULL;
#include <QGraphicsSceneContextMenuEvent>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment