Duped readable check should be exists

This commit is contained in:
Charles J. Cliffe 2015-06-01 00:05:50 -04:00
parent 44e73839a8
commit 436783535b

View File

@ -166,7 +166,7 @@ void GLFont::loadFont(std::string fontFile) {
fontFileSource = fontFileName.GetFullPath(wxPATH_NATIVE).ToStdString(); fontFileSource = fontFileName.GetFullPath(wxPATH_NATIVE).ToStdString();
if (!fontFileName.IsFileReadable()) { if (!fontFileName.FileExists()) {
std::cout << "Font file " << fontFileSource << " does not exist?" << std::endl; std::cout << "Font file " << fontFileSource << " does not exist?" << std::endl;
return; return;
} }