mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #3927 from Snuffleupagus/issue-3925
Prevent updating the current transformation matrix when the stateStack is empty
This commit is contained in:
commit
29ee96cc67
3 changed files with 15 additions and 2 deletions
|
@ -1580,8 +1580,11 @@ var TextState = (function TextStateClosure() {
|
|||
push: function TextState_push() {
|
||||
this.stateStack.push(this.ctm.slice());
|
||||
},
|
||||
pop: function TextStae_pop() {
|
||||
this.ctm = this.stateStack.pop();
|
||||
pop: function TextState_pop() {
|
||||
var prev = this.stateStack.pop();
|
||||
if (prev) {
|
||||
this.ctm = prev;
|
||||
}
|
||||
},
|
||||
initialiseTextObj: function TextState_initialiseTextObj() {
|
||||
var m = this.textMatrix;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue