X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fxforms%2Fselect-if.c;h=7d727e44e46ab3ba55ca0755841bf5ae2675c671;hb=888d0f91d57e0c3c5a4206c30ac71eb87bf44227;hp=2543760be805de26f3a90e144ec4f77d3d95dc06;hpb=65e61cc92b48297625bc71cf31b8a19e301eb6c1;p=pspp-builds.git diff --git a/src/language/xforms/select-if.c b/src/language/xforms/select-if.c index 2543760b..7d727e44 100644 --- a/src/language/xforms/select-if.c +++ b/src/language/xforms/select-if.c @@ -112,13 +112,13 @@ cmd_filter (struct lexer *lexer, struct dataset *ds) if (!v) return CMD_FAILURE; - if (v->type == ALPHA) + if (var_is_alpha (v)) { msg (SE, _("The filter variable must be numeric.")); return CMD_FAILURE; } - if (dict_class_from_id (v->name) == DC_SCRATCH) + if (dict_class_from_id (var_get_name (v)) == DC_SCRATCH) { msg (SE, _("The filter variable may not be scratch.")); return CMD_FAILURE;