Fix complete breakage of main window.
authorCarl Hetherington <cth@carlh.net>
Fri, 26 Jul 2013 12:04:16 +0000 (13:04 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 26 Jul 2013 12:04:16 +0000 (13:04 +0100)
src/tools/dcpomatic.cc

index 44f7073516d58b877a201e6c0323cc7bc60a7e06..884a2238f6dd73f88364245f6a7f3ea363eaad77 100644 (file)
@@ -228,8 +228,6 @@ public:
                   the dark-grey background on Windows.
                */
                wxPanel* overall_panel = new wxPanel (this, wxID_ANY);
-               wxBoxSizer* overall_sizer = new wxBoxSizer (wxEXPAND);
-               overall_panel->SetSizer (overall_sizer);
 
                film_editor = new FilmEditor (film, overall_panel);
                film_viewer = new FilmViewer (film, overall_panel);
@@ -253,7 +251,7 @@ public:
                }
 
                set_film ();
-               SetSizer (main_sizer);
+               overall_panel->SetSizer (main_sizer);
        }
 
 private: