Commit 075676e6 authored by mjs's avatar mjs

Reviewed by Eric, committed by Maciej.

        - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6288
          HEAD build broken 12/29/2005

        * WebCoreSupport.subproj/WebTextRenderer.m:
        (overrideLayoutOperation): Use previous character from the buffer
        instead of ch which may be uninitialized on the first iteration.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 91bbfdc6
2005-12-30 Mitz Pettel <opendarwin.org@mitzpettel.com>
Reviewed by Eric, committed by Maciej.
- fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6288
HEAD build broken 12/29/2005
* WebCoreSupport.subproj/WebTextRenderer.m:
(overrideLayoutOperation): Use previous character from the buffer
instead of ch which may be uninitialized on the first iteration.
2005-12-29 Maciej Stachowiak <mjs@apple.com>
Reviewed by Eric.
......@@ -286,7 +286,7 @@ static OSStatus overrideLayoutOperation(ATSULayoutOperationSelector iCurrentOper
padding -= params->padPerSpace;
}
}
if (offset != 0 && !isSpace(ch) && style->wordSpacing)
if (offset != 0 && !isSpace(*((UniChar *)(((char *)characters)+offset) - 1)) && style->wordSpacing)
width += style->wordSpacing;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment