Evas Textblock: Fix bad empty line add on wrapping
authorDaniel Hirt <daniel.hirt@samsung.com>
Fri, 26 Sep 2014 12:14:20 +0000 (13:14 +0100)
committerTom Hacohen <tom@stosb.com>
Fri, 26 Sep 2014 12:20:14 +0000 (13:20 +0100)
commita4d716d1c0ea5470f319413d82e915798ce9600e
tree2aae9830d7fae136902cc6fafb0e7a37179b4b6e
parent3c021572dbb36bc45bb31e8cbb0df1f7f5aaebfd
Evas Textblock: Fix bad empty line add on wrapping

Summary:
In some cases of char or word wrapping, an empty line might be
accidentally added at the end of the paragraph. That line contains
no items. Of course, this line should not exist.
One outcome of this is that it causes wrong height values of the
paragraph, when the finalizing code uses the
_layout_last_line_max_descent_adjust_calc, which in turn
looks at that empty line to calculate the descent values.

@fix

Test Plan: Char-wrap and word-wrap tests to test suite included in this revision.

Reviewers: tasn

Subscribers: JackDanielZ, cedric

Projects: #efl

Differential Revision: https://phab.enlightenment.org/D1444
src/lib/evas/canvas/evas_object_textblock.c
src/tests/evas/evas_test_textblock.c