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:
parent
c9c2fa6404
commit
c15f0ada62
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -799,6 +799,10 @@ void SubtitlesGrid::LoadDefault () {
|
|||
ass = AssFile::top;
|
||||
ass->LoadDefault();
|
||||
UpdateMaps();
|
||||
|
||||
assert(!line_iter_map.empty());
|
||||
SetActiveLine(GetDialogue(0));
|
||||
SelectRow(0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue