summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXFont.c
diff options
context:
space:
mode:
authordas <das>2007-11-17 04:24:00 (GMT)
committerdas <das>2007-11-17 04:24:00 (GMT)
commit0be38ecf422e3fd3ba562aea5779eef8360ee84e (patch)
treeae7ecf365d98f8a67ddca6976c98a82e00b2e867 /macosx/tkMacOSXFont.c
parent9413f191a02dc5ec85402de107e1916c9ce22c9a (diff)
downloadtk-0be38ecf422e3fd3ba562aea5779eef8360ee84e.zip
tk-0be38ecf422e3fd3ba562aea5779eef8360ee84e.tar.gz
tk-0be38ecf422e3fd3ba562aea5779eef8360ee84e.tar.bz2
whitespace
Diffstat (limited to 'macosx/tkMacOSXFont.c')
-rw-r--r--macosx/tkMacOSXFont.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c
index 5e2cfdd..060e952 100644
--- a/macosx/tkMacOSXFont.c
+++ b/macosx/tkMacOSXFont.c
@@ -35,7 +35,7 @@
* that such fonts can not be used for controls, because controls
* definitely require a family id (this assertion needs testing).
*
- * RCS: @(#) $Id: tkMacOSXFont.c,v 1.35 2007/11/16 17:47:30 cc_benny Exp $
+ * RCS: @(#) $Id: tkMacOSXFont.c,v 1.36 2007/11/17 04:24:00 das Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -938,10 +938,8 @@ TkpMeasureCharsInContext(
*/
if (flags & TK_WHOLE_WORDS) {
- if ((flags & TK_AT_LEAST_ONE)
- && ((offset == urstart)
- || ((offset != urend)
- && (uchars[offset] != ' ')))) {
+ if ((flags & TK_AT_LEAST_ONE) && ((offset == urstart)
+ || ((offset != urend) && (uchars[offset] != ' ')))) {
/*
* With TK_AT_LEAST_ONE, if we are the the start of the
* range, we need to add at least one character. If we are
@@ -975,14 +973,13 @@ TkpMeasureCharsInContext(
* If "flags" says that we don't actually want a word break, we need
* to find the next character break ourself, as ATSUBreakLine will
* only give us word breaks. Do a simple linear search.
- *
- * Even do this, if ATSUBreakLine returned kATSULineBreakInWord,
+ *
+ * Even do this, if ATSUBreakLine returned kATSULineBreakInWord,
* because we have not accounted correctly for all of the flags yet,
* like TK_AT_LEAST_ONE.
*/
- if ((!(flags & TK_WHOLE_WORDS) || forceCharacterMode)
- && (offset <= urend)) {
+ if ((!(flags & TK_WHOLE_WORDS) || forceCharacterMode) && (offset <= urend)) {
UniCharArrayOffset lastOffset = offset;
UniCharArrayOffset nextoffset;
int lastX = -1;