summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/fontmanager
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-05-30 11:44:46 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-05-30 14:43:37 +0200
commit3f398fe61131adf72a0c9bd707337f0129dc7e6b (patch)
treeb0c1ae0a34f7423ec4affc6d24d26a39d99b1444 /vcl/unx/generic/fontmanager
parent8444ab9287ebb8029afe576f25d8ee9103f0e7c5 (diff)
Log error code
Change-Id: I6550af7949e4838d9f23310fe5ab49fb6b466eaf Reviewed-on: https://gerrit.libreoffice.org/55053 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/unx/generic/fontmanager')
-rw-r--r--vcl/unx/generic/fontmanager/fontmanager.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx b/vcl/unx/generic/fontmanager/fontmanager.cxx
index 460a07c3c145..faf4ba614f8b 100644
--- a/vcl/unx/generic/fontmanager/fontmanager.cxx
+++ b/vcl/unx/generic/fontmanager/fontmanager.cxx
@@ -562,7 +562,8 @@ bool PrintFontManager::analyzeSfntFile( PrintFont* pFont ) const
OString aFile = getFontFile( pFont );
TrueTypeFont* pTTFont = nullptr;
- if( OpenTTFontFile( aFile.getStr(), pFont->m_nCollectionEntry, &pTTFont ) == SFErrCodes::Ok )
+ auto const e = OpenTTFontFile( aFile.getStr(), pFont->m_nCollectionEntry, &pTTFont );
+ if( e == SFErrCodes::Ok )
{
TTGlobalFontInfo aInfo;
GetTTGlobalFontInfo( pTTFont, & aInfo );
@@ -691,7 +692,7 @@ bool PrintFontManager::analyzeSfntFile( PrintFont* pFont ) const
bSuccess = true;
}
else
- SAL_WARN("vcl.fonts", "Could not OpenTTFont \"" << aFile << "\"");
+ SAL_WARN("vcl.fonts", "Could not OpenTTFont \"" << aFile << "\": " << int(e));
return bSuccess;
}