diff options
author | Kevin Walzer <kw@codebykevin.com> | 2012-10-04 03:43:21 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2012-10-04 03:43:21 (GMT) |
commit | 8460db265d4819b9361328f77e332ecd9cd6c954 (patch) | |
tree | 9ffa8e7526dc65575b31f0b7018ff849412a4d92 /macosx | |
parent | 02e0bb683624731f4b6cf6344066d7c36b45570d (diff) | |
download | tk-8460db265d4819b9361328f77e332ecd9cd6c954.zip tk-8460db265d4819b9361328f77e332ecd9cd6c954.tar.gz tk-8460db265d4819b9361328f77e332ecd9cd6c954.tar.bz2 |
Fix typo in tkMacOSXFont.c
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXFont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c index 20b8908..f5f93b4 100644 --- a/macosx/tkMacOSXFont.c +++ b/macosx/tkMacOSXFont.c @@ -885,7 +885,7 @@ TkpMeasureCharsInContext( /* 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)) { + 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); |