Use the correct dimension to know if we have to add an EOL in vertical mode

This commit is contained in:
Calixte Denizet 2022-01-07 14:02:28 +01:00
parent 290cbc5232
commit 9bb636402a

View File

@ -2476,7 +2476,7 @@ class PartialEvaluator {
return;
}
if (Math.abs(advanceX) > textContentItem.height) {
if (Math.abs(advanceX) > textContentItem.width) {
appendEOL();
return;
}