pivot-table: Add support for hiding the caption.
[pspp] / src / output / pivot-output.c
index fc41cb870f36d6439c3955982d1bed0760a42eaf..1394af4d09a539572e9a827ed5e2213acd1e1abd 100644 (file)
@@ -483,7 +483,7 @@ pivot_table_submit_layer (const struct pivot_table *pt,
       table_item_layers_destroy (layers);
     }
 
-  if (pt->caption)
+  if (pt->caption && pt->show_caption)
     {
       struct table_item_text *caption = pivot_value_to_table_item_text (
         pt->caption, &pt->areas[PIVOT_AREA_CAPTION], footnotes,