+2007-08-13 John Darrington <john@darrington.wattle.id.au>
+
+ * clipboard.c (clip_to_html clip_to_text): Fixed bug --- use the
+ variable count instead of the value count for the columns limit.
+
2007-08-12 John Darrington <john@darrington.wattle.id.au>
Ben Pfaff <blp@gnu.org>
const size_t val_cnt = casereader_get_value_cnt (clip_datasheet);
const casenumber case_cnt = casereader_get_case_cnt (clip_datasheet);
+ const size_t var_cnt = dict_get_var_cnt (clip_dict);
string = g_string_sized_new (10 * val_cnt * case_cnt);
break;
}
- for (c = 0 ; c < val_cnt ; ++c)
+ for (c = 0 ; c < var_cnt ; ++c)
{
const struct variable *v = dict_get_var (clip_dict, c);
data_out_g_string (string, v, &cc);
const size_t val_cnt = casereader_get_value_cnt (clip_datasheet);
const casenumber case_cnt = casereader_get_case_cnt (clip_datasheet);
+ const size_t var_cnt = dict_get_var_cnt (clip_dict);
+
/* Guestimate the size needed */
string = g_string_sized_new (20 * val_cnt * case_cnt);
}
g_string_append (string, "<tr>\n");
- for (c = 0 ; c < val_cnt ; ++c)
+ for (c = 0 ; c < var_cnt ; ++c)
{
const struct variable *v = dict_get_var (clip_dict, c);
g_string_append (string, "<td>");