DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
HU1: keep the integrated PDF condition clippy-clean
macadminHUe6e8fc126eb1
diff --git a/crates/pdf/src/gradient_inks.rs b/crates/pdf/src/gradient_inks.rsindex e889ee1d2..c92b80158 100644--- a/crates/pdf/src/gradient_inks.rs+++ b/crates/pdf/src/gradient_inks.rs@@ -87,7 +87,7 @@ impl Exporter<'_> {let inks: Vec<Option<Ink>> = g.stops.iter().map(|s| self.stop_ink(s)).collect();let has_spot = inks.iter().any(|i| matches!(i, Some(Ink::Spot { .. })));let on_paper = g.stops.iter().any(|s| s.swatch.as_deref() == Some(designcraft_color::swatch::PAPER));- if !has_spot && !overprint && !(on_paper && self.for_print() && !self.rgb_only) {+ if !(has_spot || overprint || on_paper && self.for_print() && !self.rgb_only) {return None;}let Some(inks) = inks.into_iter().collect::<Option<Vec<Ink>>>() else {