}
}
}
- else if (y > o->formatted.h)
+ else if (o->paragraphs && (y > o->paragraphs->y + o->formatted.h))
{
/* If we are after the last paragraph, use the last position in the
* text. */
evas_textblock_cursor_paragraph_last(cur);
return EINA_TRUE;
}
- else if ((y < 0) || (o->paragraphs && (y < o->paragraphs->y)))
+ else if (o->paragraphs && (y < o->paragraphs->y))
{
evas_textblock_cursor_paragraph_first(cur);
return EINA_TRUE;
}
}
}
- else if (y > o->formatted.h)
+ else if (o->paragraphs && (y > o->paragraphs->y + o->formatted.h))
{
int line_no = 0;
/* If we are after the last paragraph, use the last position in the
}
return line_no;
}
- else if ((y < 0) || (o->paragraphs && (y < o->paragraphs->y)))
+ else if (o->paragraphs && (y < o->paragraphs->y))
{
int line_no = 0;
evas_textblock_cursor_paragraph_first(cur);