File tree Expand file tree Collapse file tree 4 files changed +23
-12
lines changed Expand file tree Collapse file tree 4 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -519,18 +519,20 @@ addState(
519
519
const transform = argsArray [ iFirstTransform ] ;
520
520
const [ , [ buffer ] , minMax ] = args ;
521
521
522
- Util . scaleMinMax ( transform , minMax ) ;
523
- for ( let k = 0 , kk = buffer . length ; k < kk ; ) {
524
- switch ( buffer [ k ++ ] ) {
525
- case DrawOPS . moveTo :
526
- case DrawOPS . lineTo :
527
- Util . applyTransform ( buffer , transform , k ) ;
528
- k += 2 ;
529
- break ;
530
- case DrawOPS . curveTo :
531
- Util . applyTransformToBezier ( buffer , transform , k ) ;
532
- k += 6 ;
533
- break ;
522
+ if ( minMax ) {
523
+ Util . scaleMinMax ( transform , minMax ) ;
524
+ for ( let k = 0 , kk = buffer . length ; k < kk ; ) {
525
+ switch ( buffer [ k ++ ] ) {
526
+ case DrawOPS . moveTo :
527
+ case DrawOPS . lineTo :
528
+ Util . applyTransform ( buffer , transform , k ) ;
529
+ k += 2 ;
530
+ break ;
531
+ case DrawOPS . curveTo :
532
+ Util . applyTransformToBezier ( buffer , transform , k ) ;
533
+ k += 6 ;
534
+ break ;
535
+ }
534
536
}
535
537
}
536
538
// Replace queue items.
Original file line number Diff line number Diff line change 622
622
! bug1815476.pdf
623
623
! issue16021.pdf
624
624
! bug1770750.pdf
625
+ ! issue19971.pdf
625
626
! issue16063.pdf
626
627
! issue19389.pdf
627
628
! issue16067.pdf
Original file line number Diff line number Diff line change 4142
4142
"lastPage" : 1 ,
4143
4143
"type" : " eq"
4144
4144
},
4145
+ {
4146
+ "id" : " issue19971" ,
4147
+ "file" : " pdfs/issue19971.pdf" ,
4148
+ "md5" : " 2eb897b3ef3342bfc5ad31886e7cd1fe" ,
4149
+ "rounds" : 1 ,
4150
+ "lastPage" : 1 ,
4151
+ "type" : " eq"
4152
+ },
4145
4153
{
4146
4154
"id" : " issue8702-text" ,
4147
4155
"file" : " pdfs/issue8702.pdf" ,
You can’t perform that action at this time.
0 commit comments