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

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: Making virtual methods not virtual (for clang bots) Created 9 years, 9 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 | « printing/emf_win_unittest.cc ('k') | printing/native_metafile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « printing/emf_win_unittest.cc ('k') | printing/native_metafile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698