Fix crash when ActiveLine is NULL while video is loaded.

Originally committed to SVN as r4674.
This commit is contained in:
Thomas Goyne 2010-07-12 07:10:34 +00:00
parent 81b75d9f55
commit 7e93d78d3a
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ void VisualTool<FeatureType>::Commit(bool full, wxString message) {
template<class FeatureType> template<class FeatureType>
AssDialogue* VisualTool<FeatureType>::GetActiveDialogueLine() { AssDialogue* VisualTool<FeatureType>::GetActiveDialogueLine() {
AssDialogue *diag = grid->GetActiveLine(); AssDialogue *diag = grid->GetActiveLine();
if (grid->IsDisplayed(diag)) if (diag && grid->IsDisplayed(diag))
return diag; return diag;
return NULL; return NULL;
} }