From 79fb5cb3fed14a763b8b947adf05beee3d928b07 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 25 Jan 2015 19:22:47 -0800 Subject: [PATCH] Fix crash when deleting the last dialogue line from automation --- src/auto4_lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auto4_lua.cpp b/src/auto4_lua.cpp index 4093c6516..ecd5355da 100644 --- a/src/auto4_lua.cpp +++ b/src/auto4_lua.cpp @@ -820,7 +820,7 @@ namespace { ++prev; ++it; } - if (row != prev) break; + if (it == c->ass->Events.end()) break; new_sel.insert(&*it); if (row == original_active) new_active = &*it;