From 2e2841805127ffb55d6faca4fcdc75ae0addb791 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 5 Jun 2011 10:51:39 +0000 Subject: [PATCH] Evas textblock: make charwrap not force wrap in an illegal position. SVN revision: 59965 --- legacy/evas/src/lib/canvas/evas_object_textblock.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c index 3f96ea6..6e97633 100644 --- a/legacy/evas/src/lib/canvas/evas_object_textblock.c +++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c @@ -3179,9 +3179,7 @@ _layout_get_charwrap(Ctxt *c, Evas_Object_Textblock_Format *fmt, } - if (uwrap == line_start) - MOVE_NEXT_UNTIL(len, uwrap); - if ((uwrap < line_start) || (uwrap > len)) + if ((uwrap <= line_start) || (uwrap > len)) return -1; return uwrap; -- 2.7.4