Tk Source Code

Check-in [9ff0f598]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix typo in tkMacOSXFont.c
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-5-branch
Files: files | file ages | folders
SHA1: 9ff0f5980182e6484430709fc47e36092687f70f
User & Date: kevin_walzer 2012-10-04 03:43:21
Context
2012-10-05
18:26
fix typo check-in: 6b096b3a user: dgp tags: core-8-5-branch
2012-10-04
03:43
Fix typo in tkMacOSXFont.c check-in: 9ff0f598 user: kevin_walzer tags: core-8-5-branch
2012-10-02
00:53
Fix for 3572016, menus not re-enabling after modal dialog check-in: c64ce34e user: kevin_walzer tags: core-8-5-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to macosx/tkMacOSXFont.c.

881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
	    width = CTLineGetTypographicBounds(line, NULL, NULL, NULL);
	    CFRelease(line);
	}

        /* The call to CTTypesetterSuggestClusterBreak above will always
           return at least one character regardless of whether it exceeded
           it or not.  Clean that up now. */
	while (width > maxWidth && !(flags & TK_PARTIAL_OK) && index > start(flags & TK_AT_LEAST_ONE)) {
	    range.length = --index;
	    line = CTTypesetterCreateLine(typesetter, range);
	    width = CTLineGetTypographicBounds(line, NULL, NULL, NULL);
	    CFRelease(line);
	}

    }







|







881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
	    width = CTLineGetTypographicBounds(line, NULL, NULL, NULL);
	    CFRelease(line);
	}

        /* The call to CTTypesetterSuggestClusterBreak above will always
           return at least one character regardless of whether it exceeded
           it or not.  Clean that up now. */
	  while (width > maxWidth && !(flags & TK_PARTIAL_OK) && index > start+(flags & TK_AT_LEAST_ONE)) {
	    range.length = --index;
	    line = CTTypesetterCreateLine(typesetter, range);
	    width = CTLineGetTypographicBounds(line, NULL, NULL, NULL);
	    CFRelease(line);
	}

    }