mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 14:45:43 +01:00
Fix crash when dragging playhead or mouse in ruler area
This can be hard to reproduce and I have not been able to work out the steps to reproduce reliably, but as it is still occuring work around the issue by just checking the variable is valid before dereferencing it. Resolves: #7304
This commit is contained in:
parent
727ac30dd2
commit
752706911e
1 changed files with 1 additions and 1 deletions
|
|
@ -4748,7 +4748,7 @@ Editor::get_preferred_edit_position (EditIgnoreOption ignore, bool from_context_
|
|||
|
||||
switch (ep) {
|
||||
case EditAtPlayhead:
|
||||
if (_dragging_playhead) {
|
||||
if (_dragging_playhead && _control_scroll_target) {
|
||||
where = *_control_scroll_target;
|
||||
} else {
|
||||
where = _session->audible_frame();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue