diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-04-26 22:31:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-04-26 22:31:24 +0100 |
| commit | aafa1cc676b6bd4d333f0ff3a09e1effabf979c3 (patch) | |
| tree | 52bd25097ea5131338c0b3c62a37dffa265cea2b /src/wx/timeline.h | |
| parent | e7e7035f800accbb09ac99aa26d15bff22588d0b (diff) | |
Make sure at least one position change event is emitted after
a timeline drag (with frequent=false), even if lots have been sent
with frequent=true.
Otherwise the code in the CHNAGE_TYPE_DONE branch of Butler::player_change
never gets to seek (since frequent is true, it ignores the signal).
Without the seek things go wrong.
Believed to fix #1534.
Diffstat (limited to 'src/wx/timeline.h')
| -rw-r--r-- | src/wx/timeline.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/timeline.h b/src/wx/timeline.h index 89fd94179..a7f345863 100644 --- a/src/wx/timeline.h +++ b/src/wx/timeline.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2018 Carl Hetherington <cth@carlh.net> + Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -95,7 +95,7 @@ private: void film_content_change (ChangeType type, int, bool frequent); void resized (); void assign_tracks (); - void set_position_from_event (wxMouseEvent &); + void set_position_from_event (wxMouseEvent& ev, bool force_emit = false); void clear_selection (); void recreate_views (); void setup_scrollbars (); |
