summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/GraphView.cpp')
-rw-r--r--src/gui/GraphView.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/GraphView.cpp b/src/gui/GraphView.cpp
index 414f21f9..444075b9 100644
--- a/src/gui/GraphView.cpp
+++ b/src/gui/GraphView.cpp
@@ -81,6 +81,10 @@ GraphView::set_graph(SPtr<const GraphModel> graph)
_poly_spin->set_increments(1, 4);
_poly_spin->set_value(graph->internal_poly());
+ if (ganv_canvas_supports_sprung_layout(_canvas->gobj())) {
+ ganv_canvas_set_sprung_layout(_canvas->gobj(), TRUE);
+ }
+
for (const auto& p : graph->properties())
property_changed(p.first, p.second);