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

Unified Diff: printing/image_win.cc

Issue 6611032: Unifying NativeMetafile class interface (as much as possible) for Linux, Mac, Win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restored pdf_ps_metafile_cairo.h class comment Created 9 years, 10 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
Index: printing/image_win.cc
diff --git a/printing/image_win.cc b/printing/image_win.cc
index c4bc1a7f8c534700e31b2f06595a7461e19aa4b9..be089dcb7196e4a77ebf3c65ee18fa2473085ffd 100644
--- a/printing/image_win.cc
+++ b/printing/image_win.cc
@@ -45,7 +45,7 @@ class DisableFontSmoothing {
namespace printing {
bool Image::LoadMetafile(const NativeMetafile& metafile) {
- gfx::Rect rect(metafile.GetBounds());
+ gfx::Rect rect(metafile.GetPageBounds(1));
DisableFontSmoothing disable_in_this_scope;
// Create a temporary HDC and bitmap to retrieve the rendered data.

Powered by Google App Engine
This is Rietveld 408576698