Protect even more against invalid ranges or ranges outside of the document range when handling text insertion/removal events.
Protect even more against invalid ranges or ranges outside of the document range when handling text insertion/removal events.

svn path=/trunk/KDE/kdelibs/kate/; revision=1025782

sandsmark/kate,cmacq2/kate,jfmcarreira/kate,hlamer/kate,DickJ/kate,hlamer/kate,sandsmark/kate,hlamer/kate,cmacq2/kate,jfmcarreira/kate,hlamer/kate,hlamer/kate,hlamer/kate,hlamer/kate,hlamer/kate,jfmcarreira/kate,hlamer/kate,cmacq2/kate,sandsmark/kate,sandsmark/kate,hlamer/kate,DickJ/kate,DickJ/kate,DickJ/kate