mirror of
https://github.com/penpot/penpot.git
synced 2025-07-20 08:07:14 +02:00
🐛 Fix image fill strokes are not rendered correctly for texts
This commit is contained in:
parent
8bfc314b17
commit
5375029497
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue