summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXFont.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2012-09-25 15:02:22 (GMT)
committerKevin Walzer <kw@codebykevin.com>2012-09-25 15:02:22 (GMT)
commitdff342166911d2fef03897e094bff7ed86c4a17b (patch)
treea14fcdac13403624a5b4d4989b5ba09c60b69a2e /macosx/tkMacOSXFont.c
parent59e0055e5372987ed7f16557ff3eeb6f75512b98 (diff)
downloadtk-dff342166911d2fef03897e094bff7ed86c4a17b.zip
tk-dff342166911d2fef03897e094bff7ed86c4a17b.tar.gz
tk-dff342166911d2fef03897e094bff7ed86c4a17b.tar.bz2
Backport of dgp fixes to trunk for Tk-Cocoa
Diffstat (limited to 'macosx/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 67ed044..20b8908 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) {
+ 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);