]> git.parisson.com Git - pdf.js.git/commitdiff
Fix for "Error parsing value of 'letter-spacing'"
authorArtur Adib <arturadib@gmail.com>
Thu, 12 Jan 2012 15:15:45 +0000 (10:15 -0500)
committerArtur Adib <arturadib@gmail.com>
Thu, 12 Jan 2012 15:15:45 +0000 (10:15 -0500)
web/viewer.js

index bde05418b47c293a7346a9c1521c05e6dbd88250..72c154bc16d339d8acc497885bde1486d191ec56 100644 (file)
@@ -973,7 +973,7 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
         return;
       }
       var textDiv = textDivs.shift();
-      if (textDiv.dataset.textLength >= 1) { // avoid div by zero
+      if (textDiv.dataset.textLength > 1) { // avoid div by zero
         textLayerDiv.appendChild(textDiv);
         // Adjust div width (via letterSpacing) to match canvas text
         // Due to the .offsetWidth calls, this is slow