diff options
Diffstat (limited to 'core/fxge/cfx_font.cpp')
-rw-r--r-- | core/fxge/cfx_font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxge/cfx_font.cpp b/core/fxge/cfx_font.cpp index a8e271dd9a..1fd08f2676 100644 --- a/core/fxge/cfx_font.cpp +++ b/core/fxge/cfx_font.cpp @@ -447,7 +447,7 @@ bool CFX_Font::IsItalic() const { CFX_ByteString str(FXFT_Get_Face_Style_Name(m_Face)); str.MakeLower(); - return str.Find("italic") != -1; + return str.Find("italic") != FX_STRNPOS; } bool CFX_Font::IsBold() const { |