diff --git a/src/data/font.cpp b/src/data/font.cpp index 65a9153f..c4c6cb58 100644 --- a/src/data/font.cpp +++ b/src/data/font.cpp @@ -31,7 +31,7 @@ bool Font::PreloadResourceFonts(String fontsDirectoryPath, bool recursive) { #if wxUSE_PRIVATE_FONTS String pathSeparator(wxFileName::GetPathSeparator()); String appPath( wxFileName(wxStandardPaths::Get().GetExecutablePath()).GetPath() ); - fontsDirectoryPath = appPath + pathSeparator + fontsDirectoryPath + (fontsDirectoryPath.EndsWith(pathSeparator) ? wxEmptyString : pathSeparator); + fontsDirectoryPath = appPath + pathSeparator + fontsDirectoryPath + (fontsDirectoryPath.EndsWith(pathSeparator) ? "" : pathSeparator); if (!wxDirExists(fontsDirectoryPath)) return false;