diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2013-11-23 13:24:59 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2013-11-23 13:45:00 +0200 |
commit | ed913215e3ddc398486e69e680da73d6538f270e (patch) | |
tree | c9237cb6ae1288764545896ae638699d6caee9f4 | |
parent | ec5b894ef814d53653abdac9da4140a0cef95c8c (diff) |
Make TTC fonts work again
osl::File::getFileURLFromSystemPath() does not return a boolean. I
wonder how this worked before, if it worked at all.
Change-Id: Iadc0e06236f43c24cbcd42e4fd79ac9116a58c13
-rw-r--r-- | vcl/generic/fontmanager/fontmanager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx index e4ce2155385c..9f545cc305a0 100644 --- a/vcl/generic/fontmanager/fontmanager.cxx +++ b/vcl/generic/fontmanager/fontmanager.cxx @@ -907,7 +907,7 @@ bool PrintFontManager::analyzeFontFile( int nDirID, const OString& rFontFile, :: OUString aURL; if (osl::File::getFileURLFromSystemPath(OStringToOUString(aFullPath, osl_getThreadTextEncoding()), - aURL)) + aURL) == osl::File::E_None) { osl::File aFile(aURL); if (aFile.open(osl_File_OpenFlag_Read | osl_File_OpenFlag_NoLock) == osl::File::E_None) |