mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-28 12:16:53 -06:00
PDF: give the test-only Graphic literals the layer_options field
Graphic gained an optional layer_options field, so the test-only literals in the PDF crate and in the engine's optional-content support need it. No behaviour changes.
This commit is contained in:
@@ -115,6 +115,7 @@ pub fn document(bytes: Vec<u8>, hidden_sets: &[&[&str]]) -> Document {
|
||||
crop: [0.0; 4],
|
||||
wrap: Default::default(),
|
||||
fill: Default::default(),
|
||||
layer_options: None,
|
||||
});
|
||||
doc.insert_item(SpreadRef::Doc(0), item, None).unwrap();
|
||||
}
|
||||
|
||||
@@ -2009,6 +2009,7 @@ mod image_content_cache_tests {
|
||||
crop: [0.0; 4],
|
||||
wrap: Default::default(),
|
||||
fill: Default::default(),
|
||||
layer_options: None,
|
||||
};
|
||||
ex.graphic_unclipped(&mut surface, &graphic, hidden.as_deref());
|
||||
assert!(ex.layer_error.is_none());
|
||||
|
||||
@@ -17,6 +17,7 @@ fn placed_document(source: Vec<u8>) -> Document {
|
||||
crop: [0.0; 4],
|
||||
wrap: Default::default(),
|
||||
fill: Default::default(),
|
||||
layer_options: None,
|
||||
});
|
||||
doc.insert_item(SpreadRef::Doc(0), item, None).unwrap();
|
||||
doc
|
||||
|
||||
Reference in New Issue
Block a user