Fix for "Error parsing value of 'letter-spacing'"

This commit is contained in:
Artur Adib 2012-01-12 10:15:45 -05:00
parent 504d9f12c1
commit 499a9b0146

View 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