X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdata-in.c;h=35a725d577d08ff50711c37b10fb8b2f021bb202;hb=7d34380bb2fddca820a6f414564738cc2f70afc9;hp=480d335a9c086b007f01b0a9efcde1b516e2bf0e;hpb=638a86001fe7a237bd6c19a181d796305290d72a;p=pspp diff --git a/src/data/data-in.c b/src/data/data-in.c index 480d335a9c..35a725d577 100644 --- a/src/data/data-in.c +++ b/src/data/data-in.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2009, 2010 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 @@ -1187,15 +1187,6 @@ vdata_warning (const struct data_in *i, const char *format, va_list args) ds_init_empty (&text); ds_put_char (&text, '('); - if (i->first_column != 0) - { - if (i->first_column == i->last_column - 1) - ds_put_format (&text, _("column %d"), i->first_column); - else - ds_put_format (&text, _("columns %d-%d"), - i->first_column, i->last_column - 1); - ds_put_cstr (&text, ", "); - } ds_put_format (&text, _("%s field) "), fmt_name (i->format)); ds_put_vformat (&text, format, args); @@ -1204,6 +1195,8 @@ vdata_warning (const struct data_in *i, const char *format, va_list args) m.text = ds_cstr (&text); m.where.file_name = NULL; m.where.line_number = 0; + m.where.first_column = i->first_column; + m.where.last_column = i->last_column; msg_emit (&m); }