diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-21 10:26:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-21 11:55:13 +0000 |
commit | b3c282f12931b7e1cf152cb39664e3139012d7d0 (patch) | |
tree | da61acb6e78a310ac8bbf1d373944876a503b6e0 /vcl/source | |
parent | 6027c7575bc7b8821a60bad3b70c237cae69ed72 (diff) |
move error patch test to start
Change-Id: Icd6a8b301eb7cc53aac9b84d2208bcde94218470
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index 2d52a19eed60..390777e6bba1 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -879,12 +879,12 @@ static char *nameExtract( const sal_uInt8* name, int nTableSize, int n, int dbFl static int findname( const sal_uInt8 *name, sal_uInt16 n, sal_uInt16 platformID, sal_uInt16 encodingID, sal_uInt16 languageID, sal_uInt16 nameID ) { + if (n == 0) return -1; + int l = 0, r = n-1, i; sal_uInt32 t1, t2; sal_uInt32 m1, m2; - if (n == 0) return -1; - m1 = (platformID << 16) | encodingID; m2 = (languageID << 16) | nameID; |