mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-22 10:23:16 +01:00
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:
1 parent
9d2bbbc6b4
commit
d1f2a8a3c2
1 file changed
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user