@@ -574,8 +574,8 @@ void MCField::kfocus()
574574 if (flags & F_LIST_BEHAVIOR)
575575 {
576576 if (!(flags & F_TOGGLE_HILITE))
577- if (!focusedparagraph->isselection ()
578- && !focusedparagraph->IsEmpty ()
577+ if ( (!focusedparagraph->isselection ()
578+ && !focusedparagraph->IsEmpty () )
579579 || focusedparagraph->next () != focusedparagraph)
580580 {
581581 focusedparagraph->sethilite (True);
@@ -844,7 +844,7 @@ Boolean MCField::mfocus(int2 x, int2 y)
844844{
845845 Tool tool = getstack ()->gettool (this );
846846 if (!(flags & F_VISIBLE || MCshowinvisibles)
847- || flags & F_DISABLED && tool == T_BROWSE || state & CS_NO_FILE)
847+ || ( flags & F_DISABLED && tool == T_BROWSE) || state & CS_NO_FILE)
848848 return False;
849849 if (sbfocus (x, y, hscrollbar, vscrollbar))
850850 {
@@ -1040,7 +1040,7 @@ Boolean MCField::mdown(uint2 which)
10401040 }
10411041 }
10421042 if (flags & F_TRAVERSAL_ON ||
1043- ( flags & F_LOCK_TEXT || MCmodifierstate & MS_CONTROL) && flags & F_LIST_BEHAVIOR)
1043+ (( flags & F_LOCK_TEXT || MCmodifierstate & MS_CONTROL) && flags & F_LIST_BEHAVIOR) )
10441044 {
10451045 if (flags & F_TRAVERSAL_ON && !(state & CS_KFOCUSED)
10461046 && !(flags & F_NO_AUTO_HILITE))
@@ -1170,8 +1170,8 @@ Boolean MCField::mup(uint2 which, bool p_release)
11701170 {
11711171 if (flags & F_LIST_BEHAVIOR
11721172 && (my - rect.y > (int4)(textheight + topmargin - texty)
1173- || paragraphs == paragraphs->next ()
1174- && paragraphs->IsEmpty ()))
1173+ || ( paragraphs == paragraphs->next ()
1174+ && paragraphs->IsEmpty () )))
11751175 message_with_valueref_args (MCM_mouse_release, MCSTR (" 1" ));
11761176 else
11771177 {
@@ -1325,6 +1325,7 @@ void MCField::timer(MCNameRef mptr, MCParameter *params)
13251325 else if (MCNameIsEqualTo (mptr, MCM_internal2, kMCCompareCaseless ))
13261326 {
13271327 if (opened)
1328+ {
13281329 if (state & CS_SELECTING)
13291330 {
13301331 // MW-2012-01-25: [[ FieldMetrics ]] Co-ordinates are now card-based.
@@ -1333,12 +1334,15 @@ void MCField::timer(MCNameRef mptr, MCParameter *params)
13331334 MCscreen->addtimer (this , MCM_internal2, MCsyncrate);
13341335 }
13351336 else
1337+ {
13361338 if (state & CS_DRAG_TEXT)
13371339 {
13381340 if (!MCU_point_in_rect (getfrect (), mx, my))
13391341 dragtext ();
13401342 MCscreen->addtimer (this , MCM_internal2, MCsyncrate);
13411343 }
1344+ }
1345+ }
13421346 }
13431347 else
13441348 MCControl::timer (mptr, params);
@@ -2612,7 +2616,7 @@ Exec_stat MCField::vscroll(int4 offset, Boolean doredraw)
26122616 drect.y -= DEFAULT_BORDER;
26132617 drect.height += flags & F_HSCROLLBAR ? DEFAULT_BORDER : DEFAULT_BORDER * 2 ;
26142618 if (state & CS_KFOCUSED && !(extraflags & EF_NO_FOCUS_BORDER)
2615- && (IsMacEmulatedLF () || IsMacLFAM () && !MCaqua))
2619+ && (IsMacEmulatedLF () || ( IsMacLFAM () && !MCaqua) ))
26162620 drect = MCU_reduce_rect (drect, 1 );
26172621 }
26182622 // to-do change for drawing xp text fields
0 commit comments