mirror of
https://github.com/penpot/penpot.git
synced 2025-07-14 14:37:18 +02:00
🐛 Fix caps for rounded paths
This commit is contained in:
parent
8db910baee
commit
78d6166bac
2 changed files with 8 additions and 6 deletions
|
@ -443,7 +443,7 @@ impl RenderState {
|
|||
s.canvas().concat(&matrix);
|
||||
});
|
||||
|
||||
if shape.fills.is_empty() && matches!(shape.shape_type, Type::Group(_)) {
|
||||
if shape.fills.is_empty() && !matches!(shape.shape_type, Type::Group(_)) {
|
||||
if let Some(fills_to_render) = self.nested_fills.last() {
|
||||
let fills_to_render = fills_to_render.clone();
|
||||
for fill in fills_to_render.iter() {
|
||||
|
@ -664,7 +664,7 @@ impl RenderState {
|
|||
}
|
||||
}
|
||||
}
|
||||
if let Type::Group(group) = element.shape_type {
|
||||
if let Type::Group(_) = element.shape_type {
|
||||
self.nested_fills.pop();
|
||||
}
|
||||
self.surfaces.canvas(SurfaceId::Current).restore();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue