1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Corrected computing cell count for html select in UTF-8.

This commit is contained in:
Pavol Babincak 2006-05-06 21:23:12 +02:00 committed by Pavol Babincak
parent 546539b25e
commit bbd24d7bf4

View File

@ -492,7 +492,13 @@ end_parse:
max_width = 0; max_width = 0;
for (i = 0; i < order; i++) { for (i = 0; i < order; i++) {
if (!labels[i]) continue; if (!labels[i]) continue;
int_lower_bound(&max_width, strlen(labels[i])); #ifdef CONFIG_UTF_8
if (html_context->options->utf8)
int_lower_bound(&max_width,
utf8_ptr2cells(labels[i], NULL));
else
#endif /* CONFIG_UTF_8 */
int_lower_bound(&max_width, strlen(labels[i]));
} }
for (i = 0; i < max_width; i++) for (i = 0; i < max_width; i++)