Sfoglia il codice sorgente

fix infinite loop in translated coffeescript for pdfng text layer

Brian Gough 12 anni fa
parent
commit
4888ae8766

+ 3 - 2
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