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

Commit 3e929558 authored by Peiyong Lin's avatar Peiyong Lin Committed by android-build-merger
Browse files

Merge "[RoundedCorners] Avoid using invalid crop." into qt-dev

am: 381ac014

Change-Id: I30acbb2f5e0eecf56cc05913bc7225d822677dad
parents 82c58a6f 381ac014
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1810,7 +1810,8 @@ Layer::RoundedCornerState Layer::getRoundedCornerState() const {
        }
    }
    const float radius = getDrawingState().cornerRadius;
    return radius > 0 ? RoundedCornerState(getCrop(getDrawingState()).toFloatRect(), radius)
    return radius > 0 && getCrop(getDrawingState()).isValid()
            ? RoundedCornerState(getCrop(getDrawingState()).toFloatRect(), radius)
            : RoundedCornerState();
}