fix crash, change order of deleting ranges and blocks
fix crash, change order of deleting ranges and blocks

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

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