diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-18 22:40:43 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-18 22:40:43 +0000 |
commit | a849323e1e44905e48c646b29872995209a9e08a (patch) | |
tree | a3fffec70c91749c8ffac4b6c72ea2c6d9ddf858 | |
parent | 920caa5087ceee1f06368856d3e499be28458d8c (diff) | |
download | chromium_src-a849323e1e44905e48c646b29872995209a9e08a.zip chromium_src-a849323e1e44905e48c646b29872995209a9e08a.tar.gz chromium_src-a849323e1e44905e48c646b29872995209a9e08a.tar.bz2 |
Use kPTJobScope converting for XPS ticket.
I don't know why, but makes printer honor duplex option.
BUG=166571
NOTRY=TRUE
Review URL: https://codereview.chromium.org/11616011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173800 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/service/cloud_print/print_system_win.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc index adc20c7..6fa6775 100644 --- a/chrome/service/cloud_print/print_system_win.cc +++ b/chrome/service/cloud_print/print_system_win.cc @@ -125,10 +125,11 @@ HRESULT PrintTicketToDevMode(const std::string& printer_name, if (SUCCEEDED(hr)) { ULONG size = 0; DEVMODE* dm = NULL; + // Use kPTJobScope, because kPTDocumentScope breaks duplex. hr = printing::XPSModule::ConvertPrintTicketToDevMode(provider, pt_stream, kUserDefaultDevmode, - kPTDocumentScope, + kPTJobScope, &size, &dm, NULL); |