First step in making struct variable opaque: the boring mechanical
[pspp-builds.git] / src / language / stats / sort-criteria.c
index 3142eb53778ed502baf1a4ab9920ec2bf217ba33..6e8bada48e01653f7d6d08b53ca714e66a6d30ae 100644 (file)
@@ -116,7 +116,7 @@ sort_parse_criteria (struct lexer *lexer, const struct dictionary *dict,
         {
           struct sort_criterion *c = &criteria->crits[prev_var_cnt];
           c->fv = (*vars)[prev_var_cnt]->fv;
-          c->width = (*vars)[prev_var_cnt]->width;
+          c->width = var_get_width ((*vars)[prev_var_cnt]);
           c->dir = direction;
         }
     }