Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ab1f235 authored by Zhijun He's avatar Zhijun He Committed by Android Git Automerger
Browse files

am 48811160: Merge "ImageReader: fix the 0 crop rect size issue" into klp-dev

* commit '48811160':
  ImageReader: fix the 0 crop rect size issue
parents bb7a51e1 48811160
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -737,7 +737,7 @@ static jint ImageReader_imageSetup(JNIEnv* env, jobject thiz,
    int outputHeight = buffer->height;

    // Correct width/height when crop is set.
    if (buffer->crop.isValid()) {
    if (!buffer->crop.isEmpty()) {
        outputWidth = buffer->crop.getWidth();
        outputHeight = buffer->crop.getHeight();
    }