Prevent updating the current transformation matrix when the stateStack is empty

This commit is contained in:
Jonas Jenwald 2013-11-17 01:51:34 +01:00
parent 1f7bfc8cc7
commit 564ae6e4f7
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;

View File

@ -0,0 +1 @@
http://patentimages.storage.googleapis.com/pdfs/US4441207.pdf

View File

@ -23,6 +23,15 @@
"rounds": 1,
"type": "text"
},
{ "id": "issue3925",
"file": "pdfs/issue3925.pdf",
"md5": "c5c895deecf7a7565393587e0d61be2b",
"rounds": 1,
"link": true,
"firstPage": 1,
"lastPage": 1,
"type": "text"
},
{ "id": "issue1293",
"file": "pdfs/issue1293.pdf",
"md5": "0a744b3bbf2fd8da0131fd3c01dd1e30",