Permalink
Browse files

changeFont: do not use assignment result in "if" conditional

  • Loading branch information...
1 parent 55146d6 commit e9954d350809b1dc09b2ad3d947900aa8c7e782a @davidswelt committed Sep 28, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/nsterm.m
View
@@ -5012,8 +5012,9 @@ - (void)changeFont: (id)sender
if (!emacs_event)
return;
- if (newFont = [sender convertFont:
- ((struct nsfont_info *)face->font)->nsfont])
+ newFont = [sender convertFont:
+ ((struct nsfont_info *)face->font)->nsfont];
+ if (newFont)
{
SET_FRAME_GARBAGED (emacsframe); /* now needed as of 2008/10 */

0 comments on commit e9954d3

Please sign in to comment.