diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/fxge/cfx_fontmapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxge/cfx_fontmapper.cpp b/core/fxge/cfx_fontmapper.cpp index b8ffe047a3..005c61ae8a 100644 --- a/core/fxge/cfx_fontmapper.cpp +++ b/core/fxge/cfx_fontmapper.cpp @@ -431,7 +431,7 @@ FXFT_Face CFX_FontMapper::FindSubstFont(const CFX_ByteString& name, } CFX_ByteString SubstName = name; SubstName.Remove(' '); - if (bTrueType && name[0] == '@') + if (bTrueType && name.GetLength() > 0 && name[0] == '@') SubstName = name.Right(name.GetLength() - 1); PDF_GetStandardFontName(&SubstName); if (SubstName == "Symbol" && !bTrueType) { |