DescriptionFix issue with some locales simetimes getting the wrong page size.
We use ulocdata_getPaperSize to get the preferred paper size for
a region. The error handling for the call assumed that a value other
than U_ZERO_ERROR was an error. This is incorrect. The function sometimes
returns a warning (negative value). When that happens, the error handling
code defaulted to 8.5x11 pages.
This CL changes the error handling to no longer treat a warning as an error.
BUG=140821
TEST=Set display language to English(UK). Print a web page and choose to save as PDF. Verify that the saved PDF is A4.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150447
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|