Fix a crash when using detached video and pressing the up/down arrows with the video slider selected. Patch by ai-chan.

Originally committed to SVN as r2329.
This commit is contained in:
Karl Blomster 2008-09-07 03:22:35 +00:00
parent 3d0855e619
commit ff6876b412
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@
#include <wx/filename.h>
#include "dialog_detached_video.h"
#include "video_box.h"
#include "video_slider.h"
#include "video_context.h"
#include "video_display.h"
#include "frame_main.h"
@ -74,6 +75,7 @@ DialogDetachedVideo::DialogDetachedVideo(FrameMain *par)
// Video area;
videoBox = new VideoBox(panel);
videoBox->videoDisplay->freeSize = true;
videoBox->videoSlider->grid = par->SubsBox;
// Set sizer
wxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);