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

Commit 381ac014 authored by Peiyong Lin's avatar Peiyong Lin Committed by Android (Google) Code Review
Browse files

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

parents 93822a05 b9ff23ee
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();
}