From ae5d6edaed1012e22da8dcc0f58c4aeea450a21d Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 25 Mar 2012 04:04:42 +0000 Subject: [PATCH] End the batch if the Paste Over dialog is cancelled rather than horribly breaking everything Originally committed to SVN as r6596. --- aegisub/src/subs_grid.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/aegisub/src/subs_grid.cpp b/aegisub/src/subs_grid.cpp index 9f93319f2..d7b950bd5 100644 --- a/aegisub/src/subs_grid.cpp +++ b/aegisub/src/subs_grid.cpp @@ -259,6 +259,7 @@ void SubtitlesGrid::PasteLines(int n,bool pasteOver) { DialogPasteOver diag(context->parent); if (diag.ShowModal()) { delete curdiag; + EndBatch(); return; } pasteOverOptions = OPT_GET("Tool/Paste Lines Over/Fields")->GetListBool();