summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2012-10-04 03:43:21 (GMT)
committerKevin Walzer <kw@codebykevin.com>2012-10-04 03:43:21 (GMT)
commitbd21f96e9714b1cc529ce414934ee9361cfb0632 (patch)
treedd53f22c4de1ca4c273bc57ac84f359c31d5acd9
parent25f42ec75acc17b5de42daa447b54684e1eedc6d (diff)
downloadtk-bd21f96e9714b1cc529ce414934ee9361cfb0632.zip
tk-bd21f96e9714b1cc529ce414934ee9361cfb0632.tar.gz
tk-bd21f96e9714b1cc529ce414934ee9361cfb0632.tar.bz2
Fix typo in tkMacOSXFont.c
-rw-r--r--macosx/tkMacOSXFont.c2
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);