mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue