]> git.parisson.com Git - pdf.js.git/commitdiff
address review comments
authorAndreas Gal <andreas.gal@gmail.com>
Fri, 8 Jul 2011 22:13:33 +0000 (15:13 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Fri, 8 Jul 2011 22:13:33 +0000 (15:13 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 1666ce65894253ac821a27d9762d1e37fbc73b6f..e357732f234ed9ddbd9c4fd0a8bd775001a32c95 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -3936,7 +3936,7 @@ var CanvasGraphics = (function() {
         ctx.$showText(current.y, Fonts.charsToUnicode(text));
       } else {
         text = Fonts.charsToUnicode(text);
-        ctx.translate(this.current.x, -1 * this.current.y);
+        ctx.translate(current.x, -1 * current.y);
 
         var font = this.current.font;
         if (font)