Fixes: NB#256849 - Widgets Gallery crashes on changing the text style and then orient the device
Fixes: NB#256849 - Widgets Gallery crashes on changing the text style and then orient the device

RevBy: Hannu Koivisto
Details: MTextEdit didn't take into account in preedit styling that
there might be 0 length style attributes. These can exist if user
selects e.g. bold from rich text style popup but hasn't yet written
anything. If at this point a totally new QInputMethodEvent arrives,
app crashed.

nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch