From 499a9b0146bf2b0dbf06963e16a970c4fa8f1586 Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Thu, 12 Jan 2012 10:15:45 -0500 Subject: [PATCH] Fix for "Error parsing value of 'letter-spacing'" --- web/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/viewer.js b/web/viewer.js index bde05418b..72c154bc1 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -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