summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hirt <daniel.hirt@samsung.com>2016-03-22 11:12:07 +0200
committerDaniel Hirt <daniel.hirt@samsung.com>2016-03-22 11:17:22 +0200
commitf0bcf1dacc6a480a16f771f5aaac503339552a59 (patch)
tree7e542b9e59c3af003fb191cf144545c9dbf98ae4
parent3cb0aca745f330eb69306953474bb6a55f5a8823 (diff)
downloadefl-f0bcf1dacc6a480a16f771f5aaac503339552a59.tar.gz
Evas font: Fix last_up_to_pos case
This fixed condition basically means that we in our first glyph, so we need to check if it DOESN'T fit. This was discovered while trying to fix a case with textblock ellipsis and results didn't make much sense. @fix
-rw-r--r--src/lib/evas/common/evas_font_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/common/evas_font_query.c b/src/lib/evas/common/evas_font_query.c
index 1c219ee3b3..4ee79fe0e4 100644
--- a/src/lib/evas/common/evas_font_query.c
+++ b/src/lib/evas/common/evas_font_query.c
@@ -821,7 +821,7 @@ evas_common_font_query_last_up_to_pos(RGBA_Font *fn, const Evas_Text_Props *text
/* If invisible, skip */
if (gli->index == 0) continue;
if ((x >= pen_x) &&
- (((i == 0) && (x <= full_adv)) ||
+ (((i == 0) && (x < full_adv)) ||
(x < (full_adv - (gli[-1].pen_after - start_pen)) ||
(x <= (pen_x + gli->width)))) &&
(y >= -asc) && (y <= desc))