summaryrefslogtreecommitdiff
path: root/src/wx/text_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-09 21:20:10 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-09 21:20:10 +0200
commitc27d14badb229c24533db65dbaee1939dce89455 (patch)
tree250f422babe86b56bac69fe45142fd1fd4d0ec11 /src/wx/text_panel.cc
parentf10849bd52470a93f54bb90686aa9a3b1e72e796 (diff)
Make DCP text track language properly optional and ignore bad values on imported DCPs (#1950).
Diffstat (limited to 'src/wx/text_panel.cc')
-rw-r--r--src/wx/text_panel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc
index cdd61e109..8e6d5cd68 100644
--- a/src/wx/text_panel.cc
+++ b/src/wx/text_panel.cc
@@ -343,7 +343,7 @@ TextPanel::update_dcp_tracks ()
/* XXX: don't display the "magic" track which has empty name and language;
this is a nasty hack (see also Film::closed_caption_tracks)
*/
- if (!i.name.empty() || !i.language.empty()) {
+ if (!i.name.empty() || i.language) {
_dcp_track->Append (std_to_wx(i.summary()));
}
}