From 7e93d78d3ac2af4bdfe31c8eddeb74dae0c71048 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 12 Jul 2010 07:10:34 +0000 Subject: [PATCH] Fix crash when ActiveLine is NULL while video is loaded. Originally committed to SVN as r4674. --- aegisub/src/visual_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/visual_tool.cpp b/aegisub/src/visual_tool.cpp index 9bdbf3f03..3d691e8ce 100644 --- a/aegisub/src/visual_tool.cpp +++ b/aegisub/src/visual_tool.cpp @@ -277,7 +277,7 @@ void VisualTool::Commit(bool full, wxString message) { template AssDialogue* VisualTool::GetActiveDialogueLine() { AssDialogue *diag = grid->GetActiveLine(); - if (grid->IsDisplayed(diag)) + if (diag && grid->IsDisplayed(diag)) return diag; return NULL; }