[pdf] Fix bug #80312

This commit is contained in:
Nikita Khromov
2026-02-26 18:44:37 +07:00
parent 606aee6ed0
commit 70c5fb56ad

View File

@ -10617,6 +10617,11 @@ var CPresentation = CPresentation || function(){};
}
};
let oAcitveObj = controller.document.GetActiveObject();
if (oAcitveObj && oAcitveObj.IsAnnot() && oAcitveObj.IsFreeText() && oAcitveObj.IsInTextBox()) {
nAngle -= oAcitveObj.GetRotate();
}
const normalized = ((nAngle % 360) + 360) % 360;
const finalDir = rotateMap[normalized][direction];