summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-25 02:09:11 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-25 02:09:11 +0100
commit30437007ba00ab45bdbdb490b10e49ea2570636a (patch)
treedfbe16398097638f0e1234e831dd66f4aed03f08 /src/wx
parent7d344b1ecad24ee573c9da06d454e696a8149e5a (diff)
Try to fix range UI a little.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/film_editor.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc
index 91db579c5..3e5079cc5 100644
--- a/src/wx/film_editor.cc
+++ b/src/wx/film_editor.cc
@@ -776,7 +776,12 @@ FilmEditor::change_dcp_range_clicked (wxCommandEvent &)
void
FilmEditor::dcp_range_changed (int frames, TrimAction action)
{
- _film->set_dcp_frames (frames);
+ if (frames == 0) {
+ _film->unset_dcp_frames ();
+ } else {
+ _film->set_dcp_frames (frames);
+ }
+
_film->set_dcp_trim_action (action);
}