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
|
@ -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…
Reference in New Issue
Block a user