Fix bug when deleting text

Issue : #33 Backspace in the middle of the text

Fix a recursive infinite call of the "newCursorPosition()" slot when
changing font.

Signed-off-by: juiice <decaen.julien@gmail.com>