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

Commit 7ab3289d authored by Diego Perez's avatar Diego Perez Committed by Android (Google) Code Review
Browse files

Merge "Handle the case where there is no clip defined"

parents defa4c2c 76e53b5b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -620,7 +620,8 @@ public class GcSnapshot {
            int y = 0;
            int width;
            int height;
            Rectangle clipBounds = originalGraphics.getClipBounds();
            Rectangle clipBounds = originalGraphics.getClip() != null ? originalGraphics
                    .getClipBounds() : null;
            if (clipBounds != null) {
                if (clipBounds.width == 0 || clipBounds.height == 0) {
                    // Clip is 0 so no need to paint anything.