@@ -313,8 +313,9 @@ var Jbig2Image = (function Jbig2ImageClosure() {
313
313
[{x : -1 , y : -2 }, {x : 0 , y : -2 }, {x : 1 , y : -2 }, {x : -2 , y : -1 },
314
314
{x : -1 , y : -1 }, {x : 0 , y : -1 }, {x : 1 , y : -1 }, {x : 2 , y : -1 },
315
315
{x : -3 , y : 0 }, {x : -2 , y : 0 }, {x : -1 , y : 0 }],
316
- [{x : -1 , y : -2 }, {x : 0 , y : -2 }, {x : 1 , y : -2 }, {x : -1 , y : -1 },
317
- {x : 0 , y : -1 }, {x : 1 , y : -1 }, {x : -2 , y : 0 }, {x : -1 , y : 0 }],
316
+ [{x : -1 , y : -2 }, {x : 0 , y : -2 }, {x : 1 , y : -2 }, {x : -2 , y : -1 },
317
+ {x : -1 , y : -1 }, {x : 0 , y : -1 }, {x : 1 , y : -1 }, {x : -2 , y : 0 },
318
+ {x : -1 , y : 0 }],
318
319
[{x : -3 , y : -1 }, {x : -2 , y : -1 }, {x : -1 , y : -1 }, {x : 0 , y : -1 },
319
320
{x : 1 , y : -1 }, {x : -4 , y : 0 }, {x : -3 , y : 0 }, {x : -2 , y : 0 }, {x : -1 , y : 0 }]
320
321
];
@@ -772,8 +773,6 @@ var Jbig2Image = (function Jbig2ImageClosure() {
772
773
773
774
function processSegment (segment , visitor ) {
774
775
var header = segment .header ;
775
- if (!(header .typeName in visitor ))
776
- return ;
777
776
778
777
var data = segment .data , position = segment .start , end = segment .end ;
779
778
var args ;
@@ -910,13 +909,16 @@ var Jbig2Image = (function Jbig2ImageClosure() {
910
909
pageInfo .combinationOperatorOverride = !!(pageSegmentFlags & 64 );
911
910
args = [pageInfo ];
912
911
break ;
912
+ case 50 : // EndOfStripe
913
+ break ;
913
914
case 51 : // EndOfFile
914
915
break ;
915
916
default :
916
917
throw 'Segment type is not implemented: ' +
917
918
header .type + '/' + header .typeName ;
918
919
}
919
- visitor [header .typeName ].apply (visitor , args );
920
+ if (header .typeName in visitor )
921
+ visitor [header .typeName ].apply (visitor , args );
920
922
}
921
923
922
924
function processSegments (segments , visitor ) {
0 commit comments