Merge pull request #6745 from penpot/superalex-bug-fix-text-image-strokes

🐛 Fix image fill strokes are not rendered correctly for texts
This commit is contained in:
Elena Torró 2025-06-20 11:14:24 +02:00 committed by GitHub
commit f1a6b46165
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -534,7 +534,10 @@ pub fn render(
let path_transform = shape.to_path_transform();
let svg_attrs = &shape.svg_attrs;
if shadow.is_none() && matches!(stroke.fill, Fill::Image(_)) {
if !matches!(shape.shape_type, Type::Text(_))
&& shadow.is_none()
&& matches!(stroke.fill, Fill::Image(_))
{
if let Fill::Image(image_fill) = &stroke.fill {
draw_image_stroke_in_container(render_state, shape, stroke, image_fill, antialias);
}