This commit is contained in:
p.kosyh 2009-11-29 08:10:07 +00:00
parent 5d4f5673fe
commit 53b0f86060

View file

@ -1910,12 +1910,13 @@ void txt_box_norm(textbox_t tbox)
if (!box->lay)
return;
for (line = box->lay->lines; line; line = line->next) {
box->line = box->lay->lines;
for (line = box->line; line; line = line->next) {
if (off < line->h)
break;
off -= line->h;
box->line = line;
}
box->line = box->lay->lines;
}
layout_t txt_box_layout(textbox_t tbox)