source: trunk/aux/cocotron/win32/cocotron/issue653.diff @ 14659

Last change on this file since 14659 was 14659, checked in by gb, 9 years ago

Workarounds for Cocotron issues 648 and 653.

File size: 814 bytes
  • AppKit/NSBezierPath.m

    diff -r 2845a0e2fa9b AppKit/NSBezierPath.m
    a b  
    697697}
    698698
    699699-(void)appendBezierPathWithGlyphs:(NSGlyph *)glyphs count:(unsigned)count inFont:(NSFont *)font {
    700         for (int i = 0; i < count; ++i) {
     700    int i;
     701        for (i = 0; i < count; ++i) {
    701702                [self appendBezierPathWithGlyph:glyphs[i] inFont:font];
    702703        }
    703704}
     
    779780        NSBezierPath *path = (NSBezierPath *)[[self class] bezierPath];
    780781       
    781782        BOOL closed = NO; // state of current subpath
    782        
    783         for (int i = [self elementCount] - 1; i >= 0; i--)
     783        int i;
     784        for (i = [self elementCount] - 1; i >= 0; i--)
    784785    {
    785786                // Find the next point : it's the end of previous element in the original path
    786787                CGPoint nextPoint = CGPointMake(0,0);
Note: See TracBrowser for help on using the repository browser.