X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fcrosstabs.q;h=67f585593950d3e39b6a457fede0da1a3499acee;hb=refs%2Fbuilds%2F20130102032118%2Fpspp;hp=b60133d4f5ab293e3d0fc508098b385440ac7730;hpb=0b52efcb1226c05b87c4ff9add5c91c70c42c862;p=pspp diff --git a/src/language/stats/crosstabs.q b/src/language/stats/crosstabs.q index b60133d4f5..67f5855939 100644 --- a/src/language/stats/crosstabs.q +++ b/src/language/stats/crosstabs.q @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -289,11 +289,11 @@ cmd_crosstabs (struct lexer *lexer, struct dataset *ds) proc.exclude = (cmd.miss == CRS_TABLE ? MV_ANY : cmd.miss == CRS_INCLUDE ? MV_SYSTEM : MV_NEVER); - if (proc.mode == GENERAL && proc.mode == MV_NEVER) + if (proc.mode == GENERAL && proc.exclude == MV_NEVER) { msg (SE, _("Missing mode REPORT not allowed in general mode. " "Assuming MISSING=TABLE.")); - proc.mode = MV_ANY; + proc.exclude = MV_ANY; } /* PIVOT. */ @@ -1519,14 +1519,13 @@ static void format_cell_entry (struct tab_table *table, int c, int r, double value, char suffix, bool mark_missing, const struct dictionary *dict) { - const struct fmt_spec f = {FMT_F, 10, 1}; union value v; char suffixes[3]; int suffix_len; char *s; v.f = value; - s = data_out (&v, dict_get_encoding (dict), &f); + s = data_out (&v, dict_get_encoding (dict), settings_get_format ()); suffix_len = 0; if (suffix != 0)