diff options
-rw-r--r-- | src/gui/EdgeView.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/EdgeView.cpp b/src/gui/EdgeView.cpp index bb4e59c..a8a9f92 100644 --- a/src/gui/EdgeView.cpp +++ b/src/gui/EdgeView.cpp @@ -70,8 +70,7 @@ EdgeView::EdgeView(SharedPtr<Canvas> canvas, , _edge(edge) { set_color(edge_color(probability())); - set_handle_style(HANDLE_CIRCLE); - show_handle(true); + show_handle(true, HANDLE_CIRCLE); edge->signal_property.connect( sigc::mem_fun(this, &EdgeView::on_property)); @@ -100,7 +99,7 @@ EdgeView::show_label(bool show) bool EdgeView::on_event(GdkEvent* ev) { - SharedPtr<MachinaCanvas> canvas = PtrCast<MachinaCanvas>(_canvas.lock()); + MachinaCanvas* canvas = dynamic_cast<MachinaCanvas*>(_canvas); if (ev->type == GDK_BUTTON_PRESS) { if (ev->button.state & GDK_CONTROL_MASK) { if (ev->button.button == 1) { |