diff options
author | nyamatongwe <devnull@localhost> | 2009-12-13 01:04:28 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-12-13 01:04:28 +0000 |
commit | 3eee5df6adf6adf04cccd0613c794f51d98662a3 (patch) | |
tree | 21f3931cd88adcf8a64190b36b26ebdcbc2e6ecf | |
parent | 796336be89d7d729f6969a796a78bd07f338e464 (diff) | |
download | scintilla-mirror-3eee5df6adf6adf04cccd0613c794f51d98662a3.tar.gz |
Fix for bug #2909699, NULL facename causes crash.
-rw-r--r-- | win32/PlatWin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 1305b3f66..8ff27011c 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -328,7 +328,8 @@ void Font::Create(const char *faceName, int characterSet, int size, SetLogFont(lf, faceName, characterSet, size, bold, italic, extraFontFlag); fid = ::CreateFontIndirect(&lf); #else - fid = FontCached::FindOrCreate(faceName, characterSet, size, bold, italic, extraFontFlag); + if (faceName) + fid = FontCached::FindOrCreate(faceName, characterSet, size, bold, italic, extraFontFlag); #endif } |