Windows Printing: Auto-rotate pages 90 degrees counter-clockwise.
It was reported Adobe Reader rotates this way, and so does Mac's Preview.App. BUG=369206 TEST=Manual, see bug. Review URL: https://codereview.chromium.org/350803002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279455 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@ -3202,7 +3202,7 @@ int CalculatePosition(FPDF_PAGE page,
|
||||
// Auto-rotate landscape pages to print correctly.
|
||||
if (settings.autorotate &&
|
||||
(dest->width() > dest->height()) != (page_width > page_height)) {
|
||||
rotate = 1; // 90 degrees clockwise.
|
||||
rotate = 3; // 90 degrees counter-clockwise.
|
||||
std::swap(page_width, page_height);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user