Skip to content
Browse files

Prevent division by zero.

See
stomita/ios-imagefile-megapixel@5b2252c
24682f06c098c1b44fef0258d5
  • Loading branch information...
1 parent 8e7c998 commit c9df5827491ea81979d5934abafb6439685a1548 @blueimp committed Mar 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 load-image.js
View
2 load-image.js
@@ -106,7 +106,7 @@
}
py = (ey + sy) >> 1;
}
- return py / ih;
+ return (py / ih) || 1;
};
// Renders image to canvas while working around iOS image scaling bugs:

0 comments on commit c9df582

Please sign in to comment.
Something went wrong with that request. Please try again.