mirror of https://github.com/odrling/Aegisub
Fix crash when ActiveLine is NULL while video is loaded.
Originally committed to SVN as r4674.
This commit is contained in:
parent
81b75d9f55
commit
7e93d78d3a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue