From: dooglus Date: Fri, 30 Mar 2007 23:59:16 +0000 (+0000) Subject: The value of `i' goes from 0 to rows-1, so to test for the last strip we need `i... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c46638ef632d6f9eed0bce8ea9943291bfc0d504;p=synfig.git The value of `i' goes from 0 to rows-1, so to test for the last strip we need `i == rows-1', not `i == rows'. git-svn-id: http://svn.voria.com/code@395 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/target_scanline.cpp b/synfig-core/trunk/src/synfig/target_scanline.cpp index aeb2869..0272442 100644 --- a/synfig-core/trunk/src/synfig/target_scanline.cpp +++ b/synfig-core/trunk/src/synfig/target_scanline.cpp @@ -222,7 +222,7 @@ synfig::Target_Scanline::render(ProgressCallback *cb) RendDesc blockrd = desc; //render the strip at the normal size unless it's the last one... - if(i == rows) + if(i == rows-1) { if(!lastrowheight) break; blockrd.set_subwindow(0,i*rowheight,desc.get_w(),lastrowheight); @@ -357,7 +357,7 @@ synfig::Target_Scanline::render(ProgressCallback *cb) RendDesc blockrd = desc; //render the strip at the normal size unless it's the last one... - if(i == rows) + if(i == rows-1) { if(!lastrowheight) break; blockrd.set_subwindow(0,i*rowheight,desc.get_w(),lastrowheight);