Skip to content

Commit

Permalink
[pe] fix header footer preview
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyLuzyanin committed Jul 17, 2023
1 parent 68d67bf commit 49752e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slide/apiCommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -870,11 +870,11 @@ CAscHFProps.prototype['updateView'] = CAscHFProps.prototype.updateView = functio
t = ((oSp.y / dHeight * oCanvas.height) >> 0) + nLineWidth;
r = (((oSp.x + oSp.extX)/ dWidth * oCanvas.width) >> 0);
b = (((oSp.y + oSp.extY)/ dHeight * oCanvas.height) >> 0);
if(r <= oCanvas.width && r + nLineWidth > oCanvas.width) {
r = oCanvas.width - nLineWidth;
if(r <= oCanvas.width && r + nLineWidth >= oCanvas.width) {
r = oCanvas.width - nLineWidth - 1;
}
if(b <= oCanvas.height && b + nLineWidth > oCanvas.height) {
b = oCanvas.height - nLineWidth;
if(b <= oCanvas.height && b + nLineWidth >= oCanvas.height) {
b = oCanvas.height - nLineWidth - 1;
}
nPhType = oSp.getPhType();
oContext.beginPath();
Expand Down

0 comments on commit 49752e1

Please sign in to comment.