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.
This commit is contained in:
kiwi4boy
2026-11-20 00:38:13 -05:00
parent 82037cf1a0
commit ec51aa9d1c
+2
View File
@@ -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 }),