diff --git a/src/tools/ecode/ecode.cpp b/src/tools/ecode/ecode.cpp index e30e33ae9..682dcf32d 100644 --- a/src/tools/ecode/ecode.cpp +++ b/src/tools/ecode/ecode.cpp @@ -2734,10 +2734,11 @@ FontTrueType* App::loadFont( const std::string& name, std::string fontPath, const std::string& fallback ) { if ( FileSystem::isRelativePath( fontPath ) ) fontPath = mResPath + fontPath; - if ( fontPath.empty() || !FileSystem::fileExists( fontPath ) ) + if ( fontPath.empty() || !FileSystem::fileExists( fontPath ) ) { fontPath = fallback; - if ( FileSystem::isRelativePath( fontPath ) ) - fontPath = mResPath + fontPath; + if ( FileSystem::isRelativePath( fontPath ) ) + fontPath = mResPath + fontPath; + } return FontTrueType::New( name, fontPath ); }