13
0

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:
Paul Davis 2014-06-19 09:25:24 -04:00
parent 592654936e
commit f552c1cc5c

View File

@ -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);
}
}