Skip to content

Commit

Permalink
[se] Fix bug 55580
Browse files Browse the repository at this point in the history
  • Loading branch information
GoshaZotov committed Mar 9, 2022
1 parent 748cd1d commit 8879f5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cell/view/WorkbookView.js
Original file line number Diff line number Diff line change
Expand Up @@ -3152,6 +3152,9 @@
page.pageClipRectTop = Math.floor(page.pageClipRectTop * kF);
page.pageClipRectWidth = Math.ceil(page.pageClipRectWidth * kF);
page.topFieldInPx = Math.floor(page.topFieldInPx * kF) - 1;

page.titleWidth = Math.floor(page.titleWidth * kF);
page.titleHeight = Math.floor(page.titleHeight * kF);
}

printPreviewContext.clear();
Expand Down
5 changes: 5 additions & 0 deletions cell/view/WorksheetView.js
Original file line number Diff line number Diff line change
Expand Up @@ -2633,6 +2633,11 @@
t.objectRender.print(drawingPrintOptions);
if (drawingCtx.DocumentRenderer.SetBaseTransform) {
drawingCtx.DocumentRenderer.SetBaseTransform(oOldBaseTransform);
} else {
if (drawingCtx.DocumentRenderer.m_oCoordTransform) {
drawingCtx.DocumentRenderer.m_oCoordTransform.tx = oOldBaseTransform.tx * drawingCtx.DocumentRenderer.m_oCoordTransform.sx;
drawingCtx.DocumentRenderer.m_oCoordTransform.ty = oOldBaseTransform.ty * drawingCtx.DocumentRenderer.m_oCoordTransform.sy;
}
}
t.visibleRange = tmpVisibleRange;

Expand Down

0 comments on commit 8879f5a

Please sign in to comment.