Use the right source and destination lines in grid_duplicate_lines.

pull/1/head
Nicholas Marriott 2009-08-10 17:59:59 +00:00
parent ec0c33b844
commit fa64c1235e
1 changed files with 2 additions and 2 deletions

4
grid.c
View File

@ -514,8 +514,8 @@ grid_duplicate_lines(
grid_clear_lines(dst, dy, ny);
for (yy = 0; yy < ny; yy++) {
srcl = &src->linedata[yy];
dstl = &dst->linedata[yy];
srcl = &src->linedata[sy];
dstl = &dst->linedata[dy];
memcpy(dstl, srcl, sizeof *dstl);
if (srcl->cellsize != 0) {