psppire-dialog-action-crosstabs: Do not add PIVOT or NOPIVOT to command.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 13 Jan 2022 05:50:54 +0000 (21:50 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 13 Jan 2022 05:51:19 +0000 (21:51 -0800)
The CROSSTABS command does not support /FORMAT=PIVOT or /FORMAT=NOPIVOT.
I can't find any evidence that it ever did.  Perhaps q2c ignored keywords
it didn't recognize?  SPSS does not document support for any such format
keywords, so it's better to remove them from the emitted syntax than to
add support to CROSSTABS.

Thanks to Alexandra Younger for reporting the issue.

src/ui/gui/psppire-dialog-action-crosstabs.c

index 6ea08a88cbade665dcc2f59256263233e9f68fc7..3c2bd5957943a142efd149ded6942268efd2a08b 100644 (file)
@@ -296,13 +296,6 @@ generate_syntax (const PsppireDialogAction *a)
     g_string_append (string, "TABLES");
   else
     g_string_append (string, "NOTABLES");
-  g_string_append (string, " ");
-
-  if (cd->format_options_pivot)
-    g_string_append (string, "PIVOT");
-  else
-    g_string_append (string, "NOPIVOT");
-
 
   selected = 0;
   for (i = 0, ok = gtk_tree_model_get_iter_first (cd->stat, &iter); ok;