1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +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:
Brendan Dahl 2013-11-18 14:04:56 -08:00
commit 29ee96cc67
3 changed files with 15 additions and 2 deletions

View file

@ -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;