evas text: fix _ellipsis_get to return -1.0 on failure.
authorYoungbok Shin <youngb.shin@samsung.com>
Mon, 9 Feb 2015 17:30:30 +0000 (17:30 +0000)
committerTom Hacohen <tom@stosb.com>
Mon, 9 Feb 2015 17:31:35 +0000 (17:31 +0000)
commit2d403151270d074cb10367232ef7109d65e6be00
tree302e564372300a38eb32c7acb1d5b9a03d01e3be
parent1d4e8c2f1d58af2d3b730565d4d476cf87c412c3
evas text: fix _ellipsis_get to return -1.0 on failure.

Summary:
When getting ellipsis value from evas text object fails,
the most reasonable return value is -1.0.
Currently, evas_object_text_ellipsis_get API with NULL returns 0.0.
It means ellipsis is not off. It must return -1.0 when API fails.
@fix

Comments by Tom: until now, this was inconsistent. With this change, it
now returns -1.0 consistently. Also, fixed commit summary.

Reviewers: woohyun, Hermet, seoz, tasn

Reviewed By: tasn

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1944
src/lib/evas/canvas/evas_text.eo
src/tests/evas/evas_test_text.c