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

View file

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