Hand-apply 1b68e4de5260a08e7f06a1b802cfc7eb41cd4be8 from master.
[dcpomatic.git] / src / wx / video_panel.cc
index cdd2eb5def377470577b77b9032cba5e0d825853..67c369de2ddf9db63ebdb919a9d8decc8c26461e 100644 (file)
@@ -262,10 +262,13 @@ VideoPanel::film_content_changed (int property)
                }
        } else if (property == FFmpegContentProperty::FILTERS) {
                if (fcs) {
-                       string const p = Filter::ffmpeg_string (fcs->filters ());
+                       string p = Filter::ffmpeg_string (fcs->filters ());
                        if (p.empty ()) {
                                _filters->SetLabel (_("None"));
                        } else {
+                               if (p.length() > 25) {
+                                       p = p.substr (0, 25) + "...";
+                               }
                                _filters->SetLabel (std_to_wx (p));
                        }
                }