Skip to content

Commit 46c1f29

Browse files
JuanCarlosggJuan Carlos Garcia
authored andcommitted
fix: propagate graphviz layout change
1 parent 2c6ca98 commit 46c1f29

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gui/viewers/graph_viewer/graph_viewer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,18 +394,18 @@ void GraphViewer::compute_layout(const char * alg) {
394394
}
395395
// We don't need to process the edges to render them
396396
//Uncomment this is the layout propagation is desired
397-
/*qDebug() << __FILE__ <<":"<<__FUNCTION__<< " node id in graphnode: " << id ;
397+
//qDebug() << __FILE__ <<":"<<__FUNCTION__<< " node id in graphnode: " << id ;
398398
std::optional<Node> g_node = G->get_node(id);
399399
if (g_node.has_value()) {
400400
G->add_or_modify_attrib_local<pos_x_att>(*g_node, (float) x);
401401
G->add_or_modify_attrib_local<pos_y_att>(*g_node, (float) y);
402402
G->update_node(*g_node);
403-
}*/
403+
}
404404
}
405405

406406
centerOn(root_x, root_y);
407407
this->scene.setSceneRect(scene.itemsBoundingRect());
408408
this->fitInView(scene.itemsBoundingRect(), Qt::KeepAspectRatio );
409409

410410
gvFreeLayout(graphviz_context, graphviz_graph);
411-
}
411+
}

0 commit comments

Comments
 (0)