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:
parent
00ab0abd4e
commit
857a5da8f1
4 changed files with 68 additions and 16 deletions
|
@ -171,7 +171,7 @@
|
|||
}
|
||||
|
||||
if (startLevel === -1) {
|
||||
if ((strLength / numBidi) < 0.3) {
|
||||
if ((numBidi / strLength) < 0.3) {
|
||||
isLTR = true;
|
||||
startLevel = 0;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue