Skip to content
Snippets Groups Projects
Commit c999a993 authored by Janosch Machowinski's avatar Janosch Machowinski Committed by Martin Zenzes
Browse files

fixed segfault if graph is modified and relayouted

parent 7b6f75a8
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,8 @@ void QGVScene::loadLayout(const QString &text)
void QGVScene::applyLayout()
{
if(gvLayout(_context->context(), _graph->graph(), "dot") != 0)
gvFreeLayout(_context->context(), _graph->graph());
if(gvLayout(_context->context(), _graph->graph(), "dot") != 0)
{
/*
* Si plantage ici :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment