Changeset 6242

Show
Ignore:
Timestamp:
06/07/08 16:00:19 (7 months ago)
Author:
flynd
Message:

Correction to r6235, FontStyle?() does not return bool so original operator usage was correct but parentheses needed instead.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/chatdlg.cpp

    r6235 r6242  
    578578                         iter->u->ColorBg()[2]); 
    579579      QFont f(iter->w->font()); 
    580       f.setFixedPitch(iter->u->FontStyle() && 0x0F == STYLE_FIXEDxPITCH); 
     580      f.setFixedPitch((iter->u->FontStyle() & 0x0F) == STYLE_FIXEDxPITCH); 
    581581 
    582582      switch (iter->u->FontStyle() & 0xF0) 
     
    847847        { 
    848848          QFont f(GetWindow(u)->font()); 
    849           f.setFixedPitch(u->FontStyle() && 0x0F == STYLE_FIXEDxPITCH); 
     849          f.setFixedPitch((u->FontStyle() & 0x0F) == STYLE_FIXEDxPITCH); 
    850850 
    851851          switch (u->FontStyle() & 0xF0)