Skip to content

Commit

Permalink
correctly copy cropped image (Conrad Kramer)
Browse files Browse the repository at this point in the history
git-svn-id: http://zxing.googlecode.com/svn/trunk@2242 59b500cc-1b3d-0410-9834-0bbf25fbcc57
  • Loading branch information
[email protected] committed Mar 30, 2012
1 parent 1c0ac74 commit 7ebe59c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objc/src/ZXing/CGImageLuminanceSource.mm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
memcpy(bytes, baseAddress+top*bytesPerRow, size);
} else {
for(int y=0; y<height; y++) {
memcpy(bytes+y*bytesPerRow,
memcpy(bytes+y*newBytesPerRow,
baseAddress+left*4+(top+y)*bytesPerRow,
bytesPerRow);
}
Expand Down

0 comments on commit 7ebe59c

Please sign in to comment.