diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/camera/PhotoUI.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java index bad7073a9..81837f68f 100644 --- a/src/com/android/camera/PhotoUI.java +++ b/src/com/android/camera/PhotoUI.java @@ -390,6 +390,8 @@ public class PhotoUI implements PieListener, } } else { float width = mOriginalPreviewWidth, height = mOriginalPreviewHeight; + if (width == 0 || height == 0) return; + if (mOrientationResize) { scaledTextureWidth = height * mAspectRatio; if (scaledTextureWidth > width) { |