Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: printing/pdf_metafile_cg_mac.cc

Issue 8072007: PrintPreview: [MAC] Always set the crop box rectangle as print source rectangle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/pdf_metafile_cg_mac.cc
diff --git a/printing/pdf_metafile_cg_mac.cc b/printing/pdf_metafile_cg_mac.cc
index 5fc8ba3e7d24602d57b64abecd612256ff157b07..724d81499d8fcd977a185946b889a50bf855c976 100644
--- a/printing/pdf_metafile_cg_mac.cc
+++ b/printing/pdf_metafile_cg_mac.cc
@@ -180,7 +180,7 @@ bool PdfMetafileCg::RenderPage(unsigned int page_number,
return false;
}
CGPDFPageRef pdf_page = CGPDFDocumentGetPage(pdf_doc, page_number);
- CGRect source_rect = CGPDFPageGetBoxRect(pdf_page, kCGPDFMediaBox);
+ CGRect source_rect = CGPDFPageGetBoxRect(pdf_page, kCGPDFCropBox);
float scaling_factor = 1.0;
// See if we need to scale the output.
bool scaling_needed =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698