Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

PDF/.ai import: the tint transform test passes no ink names to space_of

bflatastic136810bee231
diff --git a/crates/pdf/src/tests_import_color.rs b/crates/pdf/src/tests_import_color.rs
index 294360b8b..3a561d723 100644
--- a/crates/pdf/src/tests_import_color.rs
+++ b/crates/pdf/src/tests_import_color.rs
@@ -411,7 +411,7 @@ fn inks_are_found_past_dictionary_values_the_reader_cannot_parse() {
// Opened by the reader alone, without the checks of `pages::open`.
let pdf = craft_pdf::syntax::Pdf::new(pdf(&[page], None)).unwrap();
let mut c = Colors::new(&pdf, vec![]);
- let space = c.space_of(&format!("ColorSpace(Separation(Separation {{ tint_transform: {key} }}))"), 1);
+ let space = c.space_of(&format!("ColorSpace(Separation(Separation {{ tint_transform: {key} }}))"), 1, None);
assert_eq!(space, Space::Inks(0), "{junk}");
let gold = c.native(space, &[1.0]).unwrap();
assert_eq!(gold.link, Some(("Gold".to_string(), 1.0)), "{junk}");