From e9baf52ef8219c1223457d35b503dcedddee0338 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 5 May 2019 12:19:42 +0200 Subject: [PATCH] graph.c (run_barchart): Add assertion. We don't support multidimensional barcharts. --- src/language/stats/graph.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/language/stats/graph.c b/src/language/stats/graph.c index 2eeccca206..2d60467845 100644 --- a/src/language/stats/graph.c +++ b/src/language/stats/graph.c @@ -416,6 +416,7 @@ run_barchart (struct graph *cmd, struct casereader *input) struct freq **cells = NULL; int n_cells = 0; + assert (cmd->n_by_vars <= 2); for (grouper = casegrouper_create_vars (input, cmd->by_var, cmd->n_by_vars); casegrouper_get_next_group (grouper, &group); -- 2.30.2