diff options
Diffstat (limited to 'src/wx/timeline.cc')
| -rw-r--r-- | src/wx/timeline.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 31981deea..56af6f771 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -154,9 +154,8 @@ Timeline::recreate_views () _views.push_back (shared_ptr<TimelineView> (new TimelineAudioContentView (*this, i))); } - shared_ptr<SubtitleContent> sc = dynamic_pointer_cast<SubtitleContent> (i); - if (sc && sc->has_subtitles ()) { - _views.push_back (shared_ptr<TimelineView> (new TimelineSubtitleContentView (*this, sc))); + if (i->subtitle) { + _views.push_back (shared_ptr<TimelineView> (new TimelineSubtitleContentView (*this, i))); } } |
