From: Ben Pfaff Date: Sat, 27 Dec 2025 03:52:08 +0000 (-0800) Subject: fix X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c95dd363b76c025451a56ad308691e25cf76f59d;p=pspp fix --- diff --git a/rust/pspp/src/output/pivot/look_xml.rs b/rust/pspp/src/output/pivot/look_xml.rs index 12757c623d..ee0e000246 100644 --- a/rust/pspp/src/output/pivot/look_xml.rs +++ b/rust/pspp/src/output/pivot/look_xml.rs @@ -449,6 +449,9 @@ impl BorderProperties { const GRAY: Color = Color::new(0xae, 0xae, 0xae); match border { + Border::InnerFrame(BoxBorder::Bottom) | Border::DataTop => { + look::BorderStyle::solid().with_color(VERY_DARK_BLUE) + } Border::InnerFrame(_) | Border::OuterFrame(_) | Border::Title => { look::BorderStyle::none().with_color(VERY_DARK_BLUE) } @@ -461,7 +464,6 @@ impl BorderProperties { } Border::Category(_) => look::BorderStyle::none().with_color(GRAY), Border::DataLeft => look::BorderStyle::none().with_color(VERY_DARK_BLUE), - Border::DataTop => look::BorderStyle::solid().with_color(VERY_DARK_BLUE), } } } diff --git a/rust/pspp/src/spv/read/tests.rs b/rust/pspp/src/spv/read/tests.rs index fb7456b1d0..e9cc08ec64 100644 --- a/rust/pspp/src/spv/read/tests.rs +++ b/rust/pspp/src/spv/read/tests.rs @@ -89,6 +89,12 @@ fn legacy13() { test_raw_spvfile("legacy13"); } +/// Check for correct defaults in XML looks. +#[test] +fn legacy14() { + test_raw_spvfile("legacy14"); +} + fn test_raw_spvfile(name: &str) { let input_filename = Path::new("src/spv/testdata") .join(name)