From de459275a13989e47d4eb17703a5734ee485b4ed Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 22 Apr 2010 01:09:24 +0000 Subject: [PATCH] Fix crash when using the drag visual tool on a line with a four-argument move tag. Closes #1002. Originally committed to SVN as r4239. --- aegisub/src/visual_tool.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aegisub/src/visual_tool.cpp b/aegisub/src/visual_tool.cpp index 1bf4a0242..179887159 100644 --- a/aegisub/src/visual_tool.cpp +++ b/aegisub/src/visual_tool.cpp @@ -544,7 +544,10 @@ void VisualTool::GetLineMove(AssDialogue *diag,bool &hasMove,int &x1,int &y1,int y1 = tag->Params[1]->AsInt(); x2 = tag->Params[2]->AsInt(); y2 = tag->Params[3]->AsInt(); - if (tag->Params.size() >= 6) { + if (tag->Params.size() >= 6 && + !tag->Params[4]->ommited && + !tag->Params[5]->ommited) { + t1 = tag->Params[4]->AsInt(); t2 = tag->Params[5]->AsInt(); }