From ec51aa9d1cf1e863f8fa5ea3a4fc41e4989c2770 Mon Sep 17 00:00:00 2001 From: kiwi4boy Date: Fri, 20 Nov 2026 00:38:13 -0500 Subject: [PATCH] ppt-binary: slides with their own scheme in the PowerPoint 95 shape tests don't follow the master's Two tests gave a slide its own colours while it still followed the master's scheme; since the slide box's flags are read, PowerPoint 95 marks such a slide as not following. --- crates/ppt-binary/src/ppt95/tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ppt-binary/src/ppt95/tests.rs b/crates/ppt-binary/src/ppt95/tests.rs index d6e04e12e..f5ff88c48 100644 --- a/crates/ppt-binary/src/ppt95/tests.rs +++ b/crates/ppt-binary/src/ppt95/tests.rs @@ -1101,6 +1101,7 @@ fn shapes_keep_their_fill_line_and_shadow() { // A slot of the slide's own scheme. let mut spec = SlideSpec::new(0x100, 16); spec.scheme[4] = 0x123456; + spec.follow_scheme = false; spec.objects = vec![autoshape(-1, 0, bx, 0, PLAIN)]; let p = deck(&[spec]); assert_eq!(p.slides[0].shapes[0].fill, Some(Fill::solid(rgb(0x12, 0x34, 0x56)))); @@ -1450,6 +1451,7 @@ fn shadows_keep_their_colour() { let bx = [0, 0, 576, 576]; let mut spec = SlideSpec::new(0x100, 16); spec.scheme[2] = 0x445566; + spec.follow_scheme = false; spec.objects = vec![ autoshape(-3, 0, bx, 0, Format { shadow: Some([0xFF, 0, 0, 0xFE]), ..PLAIN }), autoshape(-3, 0, bx, 0, Format { shadow: Some([0, 0, 0, 2]), ..PLAIN }),