Fix flickering black square when selecting content on Windows (#1866).
[dcpomatic.git] / src / wx / video_panel.cc
index c5a48f986e0931662741416683abe3f7e0557c4e..07a929e1096c6429fd86a06cd67fe6d77bbbccb7 100644 (file)
@@ -64,6 +64,13 @@ using namespace boost::placeholders;
 
 VideoPanel::VideoPanel (ContentPanel* p)
        : ContentSubPanel (p, _("Video"))
+{
+
+}
+
+
+void
+VideoPanel::create ()
 {
        _reference = new CheckBox (this, _("Use this DCP's video as OV and make VF"));
        _reference_note = new StaticText (this, wxT(""));
@@ -221,6 +228,8 @@ VideoPanel::VideoPanel (ContentPanel* p)
        _top_bottom_link->Bind               (wxEVT_TOGGLEBUTTON, boost::bind(&VideoPanel::top_bottom_link_clicked, this));
 
        add_to_grid ();
+
+       _sizer->Layout ();
 }