fix potential crash in Editor::set_canvas_cursor() if inadvertently passed a null cursor (semantics are different on OS X vs. X Window)
This commit is contained in:
parent
592654936e
commit
f552c1cc5c
@ -982,8 +982,8 @@ Editor::set_canvas_cursor (Gdk::Cursor* cursor, bool save)
|
||||
|
||||
Glib::RefPtr<Gdk::Window> win = _track_canvas->get_window();
|
||||
|
||||
if (win) {
|
||||
_track_canvas->get_window()->set_cursor (*cursor);
|
||||
if (win && cursor) {
|
||||
win->set_cursor (*cursor);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user