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:
commit
c1c199d702
8 changed files with 47 additions and 47 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue