Fix `is_fully_transparent()` for colors.

Oops!
This commit is contained in:
Patrick Walton 2020-02-24 21:22:36 -08:00
parent 99d980c0c7
commit 149efeb672
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ impl Paint {
pub fn is_fully_transparent(&self) -> bool {
match *self {
Paint::Color(color) => color.is_opaque(),
Paint::Color(color) => color.is_fully_transparent(),
Paint::Gradient(ref gradient) => {
gradient.stops().iter().all(|stop| stop.color.is_fully_transparent())
}