summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_canvas.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r--gtk2_ardour/editor_canvas.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc
index 3e2f423cd6..6da76503a7 100644
--- a/gtk2_ardour/editor_canvas.cc
+++ b/gtk2_ardour/editor_canvas.cc
@@ -917,6 +917,7 @@ Editor::horizontal_position () const
{
return frame_to_unit (leftmost_frame);
}
+
void
Editor::set_canvas_cursor (Gdk::Cursor* cursor, bool save)
{
@@ -924,7 +925,9 @@ Editor::set_canvas_cursor (Gdk::Cursor* cursor, bool save)
current_canvas_cursor = cursor;
}
- if (is_drawable()) {
+ Glib::RefPtr<Gdk::Window> win = track_canvas->get_window();
+
+ if (win) {
track_canvas->get_window()->set_cursor (*cursor);
}
}