fix
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 27 Dec 2025 03:52:08 +0000 (19:52 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 27 Dec 2025 03:52:08 +0000 (19:52 -0800)
rust/pspp/src/output/pivot/look_xml.rs
rust/pspp/src/spv/read/tests.rs

index 12757c623d703a03f848c3ba82145f687af83d62..ee0e0002465666001a72bb59a85f4006a81becb5 100644 (file)
@@ -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),
         }
     }
 }
index fb7456b1d0bbd44f12e8afa8ba40fb3a4b3fc678..e9cc08ec64428cc8fedfe5b0f45fa3aee8bf492d 100644 (file)
@@ -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)