Checked if mInputStyle has changed. 59/198259/3
authorJoogab Yun <joogab.yun@samsung.com>
Wed, 23 Jan 2019 03:54:55 +0000 (12:54 +0900)
committerjoogab yun <joogab.yun@samsung.com>
Tue, 12 Mar 2019 00:23:11 +0000 (00:23 +0000)
commita9ef88e778c6217a9f005e679d22d5f64f92408a
treefe144dd99540f7d3602021fad298996ffc5b93a9
parent60adf82ffbedaf4f10b55cb5f5aac1cb7d514b16
Checked if mInputStyle has changed.

If InsertText () is called while mEventData-> mInputStyle is not yet set to defaultInputStyle(),
it will behave wrong action.

ex) corner case :
  style.size = 30 but mImpl->mEventData->mInputStyle.size = 0 in InsertText()
  then this code will behave wrong action.
  const bool addFontSizeRun = style.size != mImpl->mEventData->mInputStyle.size;

  Normally, ProcessInputEvents () is called before InsertText(),
  and the value of mImpl-> mEventData-> mInputStyle.size is set to 30.
  So there is usually no problem.

Change-Id: I7ac15fe4b1bdd55c224e43a23c389fcd74a093a3
dali-toolkit/internal/text/text-controller.cpp