[4.0] Add the protected code and fix the crash issue 80/162680/7 accepted/tizen/4.0/unified/20171206.140506 submit/tizen_4.0/20171206.080250
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 4 Dec 2017 05:59:08 +0000 (14:59 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 6 Dec 2017 05:39:56 +0000 (14:39 +0900)
commitf3a6dac127ce42416ee3bf32e9c78bf4024bdcbc
tree3c68c20edd9eb549640c45107275dc6874bb5d51
parent4511fc97b67a59fcaa9a96d1dc7754ee7646330d
[4.0] Add the protected code and fix the crash issue

- When visualModel->mLines.Begin() is NULL, do nothing in GetCursorPosition().
- When the user tries to input some texts in TextField, and its size is fitted
  to its parent, which size is (0,0) by Relayout, then set mTextUpdateInfo.mNumberOfCharactersToAdd
  as the current text for UpdateModel().

Change-Id: Iea0a251ba2061389bf7a00476bf126d9669da50c
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali-toolkit/internal/text/cursor-helper-functions.cpp
dali-toolkit/internal/text/text-controller.cpp