- forgot to check this in for the previous fix
authorkali <kali@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Mar 2005 03:15:55 +0000 (03:15 +0000)
committerkali <kali@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Mar 2005 03:15:55 +0000 (03:15 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8791 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/khtml/rendering/render_text.cpp

index 1a6f6071ae74ca6db5097a1b52206612a022049a..4154c962ade0375b727bf1c677d37d645744c206 100644 (file)
@@ -1023,7 +1023,7 @@ QRect RenderText::caretRect(int offset, EAffinity affinity, int *extraWidthToEnd
     int left;
     if (box->m_reversed) {
        long len = box->m_start+box->m_len-offset;
-       QString string(str->s + box->m_start+offset,len);
+       QString string(str->s +offset,len);
        left = box->m_x + fm.boundingRect(string,len).right();
     } else {
        long len = offset - box->m_start; // the number of characters we are into the string