From 4888ae876628795d4c291fb8b87b0af3e30cd2cc Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 1 Dec 2014 16:26:48 +0000 Subject: [PATCH] fix infinite loop in translated coffeescript for pdfng text layer --- .../public/coffee/ide/pdfng/directives/pdfTextLayer.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfTextLayer.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfTextLayer.coffee index f863d6a2b2..2dc7bab9da 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfTextLayer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfTextLayer.coffee @@ -125,10 +125,11 @@ define [ lastFontSize = undefined lastFontFamily = undefined i = 0 - while i < textDivsLength textDiv = textDivs[i] - continue if textDiv.dataset.isWhitespace + if textDiv.dataset.isWhitespace + i++ + continue fontSize = textDiv.style.fontSize fontFamily = textDiv.style.fontFamily