X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fweight.c;h=fb0972f9afeadab3b92320cd5b033bd8244d4949;hb=9685c5889f0eef90258880bf1202cf5678f3a3b7;hp=6528141f8e81f4127f1a29f804d891189502712c;hpb=a19b858e0ac3c69e4a28c0ca6d8674427268a863;p=pspp diff --git a/src/language/dictionary/weight.c b/src/language/dictionary/weight.c index 6528141f8e..fb0972f9af 100644 --- a/src/language/dictionary/weight.c +++ b/src/language/dictionary/weight.c @@ -18,14 +18,17 @@ 02110-1301, USA. */ #include -#include + #include -#include + +#include #include -#include +#include +#include #include +#include +#include #include -#include #include "gettext.h" #define _(msgid) gettext (msgid) @@ -34,7 +37,7 @@ int cmd_weight (void) { if (lex_match_id ("OFF")) - dict_set_weight (default_dict, NULL); + dict_set_weight (dataset_dict (current_dataset), NULL); else { struct variable *v; @@ -54,7 +57,7 @@ cmd_weight (void) return CMD_CASCADING_FAILURE; } - dict_set_weight (default_dict, v); + dict_set_weight (dataset_dict (current_dataset), v); } return lex_end_of_command ();