mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Fix crash at start when rulers-follow-grid is enabled
When creating the editor, default modes are set, this toggles mouse-modes, in `Editor::mouse_mode_chosen` which in turn calls EditingContext::grid_type_chosen. With rulers-follow-grid enabled this can call `Editor::toggle_ruler_visibility`. Since `_session` is NULL during editor's c-tor this caused a crash in `Editor::store_ruler_visibility`.
This commit is contained in:
parent
391fe97693
commit
4b1d2b7ac8
2 changed files with 6 additions and 1 deletions
|
|
@ -777,6 +777,8 @@ Editor::toggle_ruler_visibility ()
|
|||
return;
|
||||
}
|
||||
|
||||
assert (_session);
|
||||
|
||||
update_ruler_visibility ();
|
||||
store_ruler_visibility ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue