[4.0] Check line is empty or not before getting line of character 04/165304/1
authorminho.sun <minho.sun@samsung.com>
Wed, 27 Dec 2017 07:55:49 +0000 (16:55 +0900)
committerminho.sun <minho.sun@samsung.com>
Thu, 28 Dec 2017 05:39:56 +0000 (14:39 +0900)
commit4c7c8299f18c92e988425389fe7936fc34967dd5
treea657bf0bd90b10eb0a1898cb241b432a09da8d7b
parent0e72a8e69c22ec767fbedf52b05c72588db86f2b
[4.0] Check line is empty or not before getting line of character

mLine can be empty Vector if there is no text or place holder in
text-editor / text-field.

So check mLine is empty or not first and if it is empty, return 0u.

Change-Id: I5521366ab8b5c5c682c7d303a24a90fe31abe548
automated-tests/src/dali-toolkit/utc-Dali-TextField.cpp
dali-toolkit/internal/text/visual-model-impl.cpp