From b4e3208405d52ecc2845bd9f018ecbed9bd4ee8d Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 6 Dec 2011 18:08:33 +0000 Subject: [PATCH] Fix off-by-one error causing rendering errors in the vector clip visual tool when bezier curves are used Originally committed to SVN as r5973. --- aegisub/src/spline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/spline.cpp b/aegisub/src/spline.cpp index 3fb145905..ccc754ce3 100644 --- a/aegisub/src/spline.cpp +++ b/aegisub/src/spline.cpp @@ -192,7 +192,7 @@ static int render_bicubic(Spline::iterator cur, std::vector &points) { points.push_back(p.Y()); } - return steps; + return steps + 1; } void Spline::GetPointList(std::vector& points, std::vector& first, std::vector& count) {