Skip to content

Commit

Permalink
[pe] Fix crash copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
GoshaZotov committed Oct 24, 2023
1 parent 84f21cc commit 14a6e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/wordcopypaste.js
Original file line number Diff line number Diff line change
Expand Up @@ -10980,7 +10980,7 @@ function getPageWidth()
let logicDocument = editor && editor.WordControl && editor.WordControl.m_oLogicDocument && editor.WordControl.m_oLogicDocument;
let isPortraitOrient = true;
if (logicDocument) {
isPortraitOrient = logicDocument && logicDocument.Get_DocumentOrientation();
isPortraitOrient = logicDocument && logicDocument.Get_DocumentOrientation && logicDocument.Get_DocumentOrientation();
}
return !isPortraitOrient ? Page_Height - (Y_Top_Margin + Y_Bottom_Margin) : Page_Width - (X_Left_Margin + X_Right_Margin);
}
Expand Down

0 comments on commit 14a6e3b

Please sign in to comment.