diff --git a/src/io/pdf_export.rs b/src/io/pdf_export.rs index 3f1810a68..2a1361922 100644 --- a/src/io/pdf_export.rs +++ b/src/io/pdf_export.rs @@ -1291,6 +1291,9 @@ fn emit_hatch( g = 1.0; b = 1.0; } else if !color_overridden + // `aci == 0` is an explicit true colour: it plots as drawn, only + // indexed colours meant for the dark screen are adapted. (#1417) + && hatch.aci != 0 && !(hatch.aci == 7 && matches!(hatch.pattern, HatchPattern::Solid)) { let is_light = r > 0.80 && g > 0.80 && b > 0.80;