🐛 Fix image fill strokes are not rendered correctly for texts

This commit is contained in:
Alejandro Alonso 2025-06-20 10:52:26 +02:00
parent 8bfc314b17
commit 5375029497

View file

@ -534,7 +534,10 @@ pub fn render(
let path_transform = shape.to_path_transform(); let path_transform = shape.to_path_transform();
let svg_attrs = &shape.svg_attrs; 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 { if let Fill::Image(image_fill) = &stroke.fill {
draw_image_stroke_in_container(render_state, shape, stroke, image_fill, antialias); draw_image_stroke_in_container(render_state, shape, stroke, image_fill, antialias);
} }