1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Fix inverted calculation of RTL text percentage in bidi.

This commit is contained in:
Syed Abdullah 2017-01-12 00:04:54 +08:00
parent 00ab0abd4e
commit 857a5da8f1
4 changed files with 68 additions and 16 deletions

View file

@ -171,7 +171,7 @@
}
if (startLevel === -1) {
if ((strLength / numBidi) < 0.3) {
if ((numBidi / strLength) < 0.3) {
isLTR = true;
startLevel = 0;
} else {