Evas textblock: make charwrap not force wrap in an illegal position.
authorTom Hacohen <tom@stosb.com>
Sun, 5 Jun 2011 10:51:39 +0000 (10:51 +0000)
committerTom Hacohen <tom@stosb.com>
Sun, 5 Jun 2011 10:51:39 +0000 (10:51 +0000)
SVN revision: 59965

legacy/evas/src/lib/canvas/evas_object_textblock.c

index 3f96ea6..6e97633 100644 (file)
@@ -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;