summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/GraphBox.cpp')
-rw-r--r--src/gui/GraphBox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/GraphBox.cpp b/src/gui/GraphBox.cpp
index 571bc61a..2f561959 100644
--- a/src/gui/GraphBox.cpp
+++ b/src/gui/GraphBox.cpp
@@ -304,11 +304,11 @@ GraphBox::set_graph(const SPtr<const GraphModel>& graph,
// Add view to our alignment
if (_view->get_parent()) {
- _view->get_parent()->remove(*_view.get());
+ _view->get_parent()->remove(*_view);
}
_alignment->remove();
- _alignment->add(*_view.get());
+ _alignment->add(*_view);
if (_breadcrumbs->get_parent()) {
_breadcrumbs->get_parent()->remove(*_breadcrumbs);