diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-25 00:59:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-25 00:59:29 +0100 |
| commit | 5ef9c8005218793b1a02bc6f0ecdc68184b1a603 (patch) | |
| tree | 7b8cd579145aa2e9031b6bde4e5f545891929e06 /src | |
| parent | 696b6cf0eb9e8ae651bf58b5a3cff80291562450 (diff) | |
Fix DCP range label.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_editor.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index 5ff3b3302..91db579c5 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -502,12 +502,10 @@ FilmEditor::film_changed (Film::Property p) case Film::THUMBS: break; case Film::DCP_FRAMES: - if (_film->dcp_frames() == 0) { + if (!_film->dcp_frames()) { _dcp_range->SetLabel (wxT ("Whole film")); } else { - stringstream s; - s << "First " << _film->dcp_frames() << " frames"; - _dcp_range->SetLabel (std_to_wx (s.str ())); + _dcp_range->SetLabel (std_to_wx (String::compose ("First %1 frames", _film->dcp_frames().get()))); } _sizer->Layout (); break; |
