From 988e608f74f5fd092a38765bab4c114524326f06 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 29 Apr 2004 03:44:39 +0000 Subject: [PATCH] hmm math just a little off SVN revision: 9970 --- legacy/evas/src/lib/engines/common/evas_font_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/lib/engines/common/evas_font_query.c b/legacy/evas/src/lib/engines/common/evas_font_query.c index bf5615da26..346cd2c8c2 100644 --- a/legacy/evas/src/lib/engines/common/evas_font_query.c +++ b/legacy/evas/src/lib/engines/common/evas_font_query.c @@ -253,8 +253,8 @@ evas_common_font_query_text_at_pos(RGBA_Font *fn, const char *text, int x, int y chr_w += (chr_x - prev_chr_end); chr_x = prev_chr_end; } - if ((x >= chr_x) && (x <= (chr_x + chr_w)) && - (y > -asc) && (y < desc)) + if ((x >= chr_x) && (x < (chr_x + chr_w)) && + (y >= -asc) && (y < desc)) { if (cx) *cx = chr_x; if (cy) *cy = -asc;