1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Merge pull request #7295 from Snuffleupagus/core-getArray

Use `Dict_getArray` in more places in `src/core/` to avoid issues when Arrays contain indirect objects
This commit is contained in:
Tim van der Meij 2016-05-10 23:21:54 +02:00
commit c1c199d702
8 changed files with 47 additions and 47 deletions

View file

@ -172,7 +172,7 @@ var Catalog = (function CatalogClosure() {
var title = outlineDict.get('Title');
var flags = outlineDict.get('F') || 0;
var color = outlineDict.get('C'), rgbColor = blackColor;
var color = outlineDict.getArray('C'), rgbColor = blackColor;
// We only need to parse the color when it's valid, and non-default.
if (isArray(color) && color.length === 3 &&
(color[0] !== 0 || color[1] !== 0 || color[2] !== 0)) {