diff options
Diffstat (limited to 'src/gui/NodeView.cpp')
-rw-r--r-- | src/gui/NodeView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/NodeView.cpp b/src/gui/NodeView.cpp index 71852ab..66c090f 100644 --- a/src/gui/NodeView.cpp +++ b/src/gui/NodeView.cpp @@ -64,7 +64,7 @@ bool NodeView::on_click(GdkEventButton* event) { if (event->state & GDK_CONTROL_MASK) { - MachinaCanvas* canvas = dynamic_cast<MachinaCanvas*>(_canvas); + MachinaCanvas* canvas = dynamic_cast<MachinaCanvas*>(this->canvas()); if (event->button == 1) { canvas->app()->controller()->set_property( _node->id(), @@ -142,7 +142,7 @@ NodeView::on_property(Machina::URIInt key, const Raul::Atom& value) } } else if (key == URIs::instance().machina_enter_action) { const uint64_t action_id = value.get_int32(); - MachinaCanvas* canvas = dynamic_cast<MachinaCanvas*>(_canvas); + MachinaCanvas* canvas = dynamic_cast<MachinaCanvas*>(this->canvas()); _enter_action_connection.disconnect(); _enter_action = canvas->app()->client_model()->find(action_id); _enter_action_connection = _enter_action->signal_property.connect( |