CORRELATIONS: Fix bug parsing /STATISTICS=ALL
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 4 Oct 2009 14:25:04 +0000 (16:25 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 4 Oct 2009 14:25:04 +0000 (16:25 +0200)
src/language/stats/correlations.c

index 69d91d03c2b56bb9bc71f8c5e1294db4587416fa..e397dae53b2ff482bb0ea9b31cc4b2685ddd14dd 100644 (file)
@@ -432,8 +432,11 @@ cmd_correlation (struct lexer *lexer, struct dataset *ds)
                opts.statistics = STATS_DESCRIPTIVES;
              else if (lex_match_id (lexer, "XPROD"))
                opts.statistics = STATS_XPROD;
-             else if (lex_match_id (lexer, "ALL"))
-               opts.statistics = STATS_ALL;
+             else if (lex_token (lexer) == T_ALL)
+               {
+                 opts.statistics = STATS_ALL;
+                 lex_get (lexer);
+               }
              else 
                {
                  lex_error (lexer, NULL);