fixes in keyboard ctrl

This commit is contained in:
p.kosyh 2009-09-05 10:32:25 +00:00
parent 3ad2134dd1
commit f024fc5592
2 changed files with 2 additions and 2 deletions

View file

@ -1556,7 +1556,7 @@ static void select_frame(int prev)
}
el_size(sel_el, &w, &h);
x = el(sel_el)->mx;
y = el(sel_el)->mx;
y = el(sel_el)->my;
if (x < el(sel_el)->x || y < el(sel_el)->y ||
x > el(sel_el)->x + w || y > el(sel_el)->y + h) {
x = el(sel_el)->x + w / 2;

View file

@ -1556,7 +1556,7 @@ xref_t txt_box_xrefs(textbox_t tbox)
for (line = box->line; line; line = line->next) {
if (line->y + line->h < box->off)
continue; /* too high */
if (line->y > box->h + box->off)
if (line->y + line->h > box->h + box->off)
break; /* bottom */
for (word = line->words; word; word = word->next) {
xref = word->xref;