X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput%2Fspv%2Fspv-writer.c;h=a1069f963a191a28279169ba68bc5254eac0ae1c;hb=0394b56ed72885ec7a9dec776c1c676768e7c01a;hp=f1aa798dc0dbfb34f193bfa510a2460fb8096439;hpb=c8d4730341536ea6120a273100b0333327bf880a;p=pspp diff --git a/src/output/spv/spv-writer.c b/src/output/spv/spv-writer.c index f1aa798dc0..a1069f963a 100644 --- a/src/output/spv/spv-writer.c +++ b/src/output/spv/spv-writer.c @@ -714,7 +714,9 @@ put_custom_currency (struct buf *buf, const struct pivot_table *table) static void put_x1 (struct buf *buf, const struct pivot_table *table) { - put_bytes (buf, "\0\1\0", 3); + put_byte (buf, 0); + put_byte (buf, table->show_title ? 1 : 10); + put_byte (buf, 0); put_byte (buf, 0); put_show_values (buf, table->show_variables); put_show_values (buf, table->show_values); @@ -723,7 +725,7 @@ put_x1 (struct buf *buf, const struct pivot_table *table) for (int i = 0; i < 17; i++) put_byte (buf, 0); put_bool (buf, false); - put_byte (buf, 1); + put_byte (buf, table->show_caption); } static void