Fix playhead position after trim-up-to (#1847).
authorCarl Hetherington <cth@carlh.net>
Sun, 27 Sep 2020 21:31:06 +0000 (23:31 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 27 Sep 2020 21:31:06 +0000 (23:31 +0200)
src/wx/timing_panel.cc

index 97f3beca6d617c987ec01bbfb340fef1e8ce40ec..c4234af66396bda8a940d29fda5f529ac04cbff3 100644 (file)
@@ -563,11 +563,11 @@ TimingPanel::trim_start_to_playhead_clicked ()
                }
        }
 
+       fv->set_coalesce_player_changes (false);
+
        if (new_ph) {
                fv->seek (new_ph.get(), true);
        }
-
-       fv->set_coalesce_player_changes (false);
 }
 
 void