Commit 6d19e9e8 authored by Ell's avatar Ell
Browse files

app: another off-by-one chunking fix

parent 709c929d
......@@ -181,8 +181,8 @@ gimp_display_shell_draw_image (GimpDisplayShell *shell,
}
/* divide the painted area to evenly-sized chunks */
n_rows = ceil (h / chunk_height);
n_cols = ceil (w / chunk_width);
n_rows = ceil (h / floor (chunk_height));
n_cols = ceil (w / floor (chunk_width));
for (r = 0; r < n_rows; r++)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment