From d01c0cf501473790579c42177de38ae7e5b31530 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 27 Jan 2012 19:22:46 +0000 Subject: [PATCH] Fix crash when drawing a vector clip that does not start with a move. Closes #1430. Originally committed to SVN as r6375. --- aegisub/src/spline.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aegisub/src/spline.cpp b/aegisub/src/spline.cpp index 3d010b954..3a9ba10dd 100644 --- a/aegisub/src/spline.cpp +++ b/aegisub/src/spline.cpp @@ -160,6 +160,9 @@ void Spline::DecodeFromASS(wxString str) { stack.clear(); } } + + if (!empty() && front().type != SplineCurve::POINT) + push_front(pt); } void Spline::MovePoint(iterator curve,int point,Vector2D pos) {