Fix crash when drawing a vector clip that does not start with a move. Closes #1430.

Originally committed to SVN as r6375.
This commit is contained in:
Thomas Goyne 2012-01-27 19:22:46 +00:00
parent 4746ae8a1d
commit d01c0cf501
1 changed files with 3 additions and 0 deletions

View File

@ -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) {