summaryrefslogtreecommitdiff
path: root/vcl/source/fontsubset
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-17 10:11:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-17 14:53:21 +0000
commitbf5bb66fbfcb563ed4fdc0b99238fcb6239ffd9f (patch)
tree53c1883eab3793bcad61a435a82569f975fc7812 /vcl/source/fontsubset
parentb21b723c7c6ee06439200631f65ab0a39d42bbb4 (diff)
coverity#1251174 help coverity out here
Change-Id: I07d6d0356ee0093f7f10a7dfbbc37a620205f37a
Diffstat (limited to 'vcl/source/fontsubset')
-rw-r--r--vcl/source/fontsubset/sft.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx
index b694520f5682..4cdb95c3d766 100644
--- a/vcl/source/fontsubset/sft.cxx
+++ b/vcl/source/fontsubset/sft.cxx
@@ -1091,7 +1091,7 @@ static sal_uInt32 getGlyph2(const sal_uInt8 *cmap, const sal_uInt32 nMaxCmapSize
}
if(k == 0) {
- firstCode = Int16FromMOTA(subHeader2s[k].firstCode);
+ firstCode = Int16FromMOTA(subHeader2s[0].firstCode);
if(theLowByte >= firstCode && theLowByte < (firstCode + Int16FromMOTA(subHeader2s[k].entryCount))) {
sal_uInt16* const pGlyph = (&(subHeader2s[0].idRangeOffset))
+ (Int16FromMOTA(subHeader2s[0].idRangeOffset)/2) /* + offset */