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

Commit a465451b authored by Mark Renouf's avatar Mark Renouf
Browse files

Fix off-by-one error in scroll capture page limit check

Test: manual
Change-Id: I7c7c89f9e44291fe9b61a5c592544ee3bfe362e6
parent 31a43ae6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ public class ScrollCaptureController {
                            mPicture = stackBelow(mPicture, result.image, result.captured.width(),
                                    result.captured.height());
                        }
                        if (emptyFrame || mFrameCount > MAX_PAGES
                        if (emptyFrame || mFrameCount >= MAX_PAGES
                                || requestRect.bottom > MAX_HEIGHT) {
                            Uri uri = null;
                            if (mPicture != null) {