summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-01-02 13:19:02 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-01-02 13:19:02 (GMT)
commit412d6e286c20be3ab0e78d25d769a72e96d84022 (patch)
tree13396cfce9785297c7bd4eca274703fef638ca09 /macosx
parent1d0be859f9a1842f49b4ea563d560cd947e38175 (diff)
downloadtk-412d6e286c20be3ab0e78d25d769a72e96d84022.zip
tk-412d6e286c20be3ab0e78d25d769a72e96d84022.tar.gz
tk-412d6e286c20be3ab0e78d25d769a72e96d84022.tar.bz2
'Fixed' font-24.11 and unixfont-5.12 to fail again identically as they fail in core-8-6-branch.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXFont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c
index db36731..b5ae1a3 100644
--- a/macosx/tkMacOSXFont.c
+++ b/macosx/tkMacOSXFont.c
@@ -870,7 +870,7 @@ TkpMeasureCharsInContext(
if (index <= start && !(flags & TK_WHOLE_WORDS)) {
index = CTTypesetterSuggestClusterBreak(typesetter, start, maxWidth);
}
- cs = (index < len && (flags & TK_WHOLE_WORDS)) ?
+ cs = (index <= len && (flags & TK_WHOLE_WORDS)) ?
whitespaceCharacterSet : lineendingCharacterSet;
while (index > start &&
[cs characterIsMember:[string characterAtIndex:(index - 1)]]) {