X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fvideo_waveform_dialog.cc;h=73ccc82df67abb80b6054d7584b289bd65c45aed;hb=790db8faab093231664c402fcc33b0b96687e222;hp=bc68fa6c2efe95e6b51729988533efded801ae48;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;p=dcpomatic.git diff --git a/src/wx/video_waveform_dialog.cc b/src/wx/video_waveform_dialog.cc index bc68fa6c2..73ccc82df 100644 --- a/src/wx/video_waveform_dialog.cc +++ b/src/wx/video_waveform_dialog.cc @@ -18,15 +18,15 @@ */ + #include "video_waveform_dialog.h" #include "video_waveform_plot.h" #include "film_viewer.h" #include "wx_util.h" #include "static_text.h" #include -#include -using std::cout; + using boost::bind; using std::weak_ptr; using std::shared_ptr; @@ -35,7 +35,7 @@ using namespace boost::placeholders; #endif -VideoWaveformDialog::VideoWaveformDialog (wxWindow* parent, weak_ptr film, weak_ptr viewer) +VideoWaveformDialog::VideoWaveformDialog(wxWindow* parent, weak_ptr film, FilmViewer& viewer) : wxDialog ( parent, wxID_ANY, @@ -112,9 +112,7 @@ VideoWaveformDialog::shown (wxShowEvent& ev) { _plot->set_enabled (ev.IsShown ()); if (ev.IsShown ()) { - shared_ptr fv = _viewer.lock (); - DCPOMATIC_ASSERT (fv); - fv->slow_refresh (); + _viewer.slow_refresh(); } }