Skip to content

Commit 6491bff

Browse files
authored
fix image circle
1 parent 15a7ae0 commit 6491bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meme_generator_utils/src/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl ImageExt for Image {
234234
let image = self.square();
235235
let radius = image.width() as f32 / 2.0;
236236
let path = Path::circle((radius, radius), radius, None);
237-
self.clip_path(&path, ClipOp::Intersect)
237+
image.clip_path(&path, ClipOp::Intersect)
238238
}
239239

240240
fn round_corner(&self, radius: f32) -> Image {

0 commit comments

Comments
 (0)