[Tizen] Checked if mInputStyle has changed. 60/198260/1 accepted/tizen/5.0/unified/20190125.004726 submit/tizen_5.0/20190124.013915
authorJoogab Yun <joogab.yun@samsung.com>
Wed, 23 Jan 2019 03:54:55 +0000 (12:54 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Wed, 23 Jan 2019 04:32:41 +0000 (13:32 +0900)
commit624f3b11f1605c7351b5028dc5d3dbf10cba3758
tree0f2ec29561950eeedbb2768681eb3f3208f15c11
parentaa047a9cfbbdc880cb9d4e3008e1dac077e99b54
[Tizen] 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