diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-03 17:47:00 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-03 17:47:00 +0000 |
| commit | d3af3c9c9e1c0272986b41f9ffa323e46a79cd75 (patch) | |
| tree | dd5d3d0c0d48c1e06af5ffe40bd2142ec56e7616 /src/lib | |
| parent | edc3870f920f8210015dce7854783eec70dc62e4 (diff) | |
Fix crop on aligned images, which affected still image DCP generation.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/image.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc index 9223fdc5d..0ec6bd26c 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -240,8 +240,8 @@ Image::crop (Crop crop, bool aligned) const for (int y = 0; y < cropped_size.height; ++y) { memcpy (out_p, in_p + crop_left_in_bytes, cropped_width_in_bytes); - in_p += line_size()[c]; - out_p += out->line_size()[c]; + in_p += stride()[c]; + out_p += out->stride()[c]; } } |
