diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 17:02:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 18:45:14 +0100 |
commit | 5169abbac92f30b950ab19c2c8e285c47fb1f0d7 (patch) | |
tree | 12dc79b6a99b1978982f816037a9c1bad23032f0 /vcl/source/fontsubset/gsub.cxx | |
parent | 3e5ff1f8d4da3470fa4016264c9410834a9736d8 (diff) |
bool improvements
Change-Id: I7ec4f5b2e691ec03e9e2c5ca3a004f1e04efbc27
Diffstat (limited to 'vcl/source/fontsubset/gsub.cxx')
-rw-r--r-- | vcl/source/fontsubset/gsub.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/fontsubset/gsub.cxx b/vcl/source/fontsubset/gsub.cxx index cf75d28cd4bf..e51fb2ee34f3 100644 --- a/vcl/source/fontsubset/gsub.cxx +++ b/vcl/source/fontsubset/gsub.cxx @@ -53,12 +53,12 @@ inline sal_uInt16 NEXT_UShort( const unsigned char* &p ) #define MKTAG(s) ((((((s[0]<<8)+s[1])<<8)+s[2])<<8)+s[3]) -int ReadGSUB( struct _TrueTypeFont* pTTFile, +bool ReadGSUB( struct _TrueTypeFont* pTTFile, int nRequestedScript, int nRequestedLangsys ) { const FT_Byte* pGsubBase = (FT_Byte*)pTTFile->tables[ O_gsub ]; if( !pGsubBase ) - return -1; + return false; // #129682# check offsets inside GSUB table const FT_Byte* pGsubLimit = pGsubBase + pTTFile->tlens[ O_gsub ]; @@ -73,7 +73,7 @@ int ReadGSUB( struct _TrueTypeFont* pTTFile, // sanity check the GSUB header if( nVersion != 0x00010000 ) if( nVersion != 0x00001000 ) // workaround for SunBatang etc. - return -1; // unknown format or broken + return false; // unknown format or broken typedef std::vector<sal_uLong> ReqFeatureTagList; ReqFeatureTagList aReqFeatureTagList; |