13
0

fix crash cause by ending non-existing track drag

This commit is contained in:
Paul Davis 2024-06-05 16:37:13 -06:00
parent b00e099d02
commit 4872d6706d

View File

@ -7103,6 +7103,10 @@ Editor::mid_track_drag (GdkEventMotion* ev, Gtk::Widget& w)
void
Editor::end_track_drag ()
{
if (!track_drag) {
return;
}
if (track_drag->have_predrag_cursor) {
gdk_window_set_cursor (edit_controls_vbox.get_toplevel()->get_window()->gobj(), track_drag->predrag_cursor);
}