projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
696b6cf
)
Fix DCP range label.
author
Carl Hetherington
<cth@carlh.net>
Wed, 24 Oct 2012 23:59:29 +0000
(
00:59
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 24 Oct 2012 23:59:29 +0000
(
00:59
+0100)
src/wx/film_editor.cc
patch
|
blob
|
history
diff --git
a/src/wx/film_editor.cc
b/src/wx/film_editor.cc
index 5ff3b3302561ecdae5b96cd26e4e43ce1da5b8ac..91db579c5252d90d768c851005cdde669e3b3416 100644
(file)
--- 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;