Prevent accidental transformation of selection bounds in TextItem.

Closes #386.