From de8d5c96abeb19fe680d363ab6e1630be928f3b7 Mon Sep 17 00:00:00 2001 From: Gert Pellin Date: Tue, 13 Oct 2026 03:37:30 +0200 Subject: [PATCH] Pathfinder: Trim, Merge and Crop remove strokes The public Pathfinder documentation says Trim and Crop remove any strokes, and Merge removes them and merges same-coloured fills. The pieces kept every stroke, and Merge, grouping by the whole style, left same-filled objects with different strokes apart. The three now drop stroke layers before styles are compared. Fixes #1570 --- crates/engine/src/cmd/pathops.rs | 7 ++++++- crates/engine/src/tests_pathops.rs | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/pathops.rs b/crates/engine/src/cmd/pathops.rs index f94ed93f..46bf4a37 100644 --- a/crates/engine/src/cmd/pathops.rs +++ b/crates/engine/src/cmd/pathops.rs @@ -383,10 +383,15 @@ fn run_pf(s: &mut Session, op: PathfinderOp) -> Result { let mut styles: Vec