Be more sure the audio display's grid pointer is initialised properly. Should fix audio loading.

Originally committed to SVN as r4605.
This commit is contained in:
Niels Martin Hansen 2010-06-26 14:09:15 +00:00
parent c9c2fa6404
commit c15f0ada62
2 changed files with 5 additions and 0 deletions

View file

@ -82,6 +82,7 @@
/// @param parent
AudioDisplay::AudioDisplay(wxWindow *parent)
: wxWindow (parent, -1, wxDefaultPosition, wxSize(200,OPT_GET("Audio/Display Height")->GetInt()), AudioDisplayWindowStyle , _T("Audio Display"))
, grid(0)
{
// Set variables
origImage = NULL;

View file

@ -799,6 +799,10 @@ void SubtitlesGrid::LoadDefault () {
ass = AssFile::top;
ass->LoadDefault();
UpdateMaps();
assert(!line_iter_map.empty());
SetActiveLine(GetDialogue(0));
SelectRow(0);
}