Clipboard: a pasted design the document keeps adds no filter names

The SVG filters in the art of a graph design the document already has
are left out when the paste picks names for the filters it brings, since
that art is not pasted.
This commit is contained in:
dotCooCoo committed 2026-11-19 06:31:22 -08:00
1 parent 9d2bbbc6b4
commit d1f2a8a3c2
1 file changed
+2 -1
+2 -1
View File
@@ -1392,7 +1392,8 @@ impl Clipboard {
for a in self.brushes.iter().flat_map(Brush::art) {
node_filters(a, &mut found);
}
for g in &self.graph_designs {
// A design the document has under the same name stays its own, so its art here is not pasted.
for g in self.graph_designs.iter().filter(|g| !d.graph_designs.iter().any(|x| x.name == g.name)) {
node_filters(&g.art, &mut found);
}
for g in &self.graphic_styles {