fix compile error

fixes string typing error that happens in font.cpp
This commit is contained in:
ebbit1q
2025-04-14 00:57:49 +02:00
parent f227609f60
commit 8efb2fa492
+1 -1
View File
@@ -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;