diff options
author | Lei Zhang <thestig@chromium.org> | 2018-04-25 18:01:52 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-25 18:01:52 +0000 |
commit | 537f4c7b592a6981f9686297496cb23b461dfd5e (patch) | |
tree | af3ba90c5a64eaa24e252484c3484f9b8ed94d9b /fpdfsdk | |
parent | 306b9a87090ba4c4cc8453ef04f230620e224fe0 (diff) | |
download | pdfium-537f4c7b592a6981f9686297496cb23b461dfd5e.tar.xz |
Use WindowsPrintMode in more places in place of ints.
Move WindowsPrintMode assertion into CPSPrinterDriver.
Change-Id: I570076b43751e052c5396e89a6674b83a4ad1a1e
Reviewed-on: https://pdfium-review.googlesource.com/31298
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdf_view.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_view.cpp b/fpdfsdk/fpdf_view.cpp index d21448bc53..60be46b977 100644 --- a/fpdfsdk/fpdf_view.cpp +++ b/fpdfsdk/fpdf_view.cpp @@ -212,7 +212,7 @@ FPDF_EXPORT void FPDF_CALLCONV FPDF_SetPrintTextWithGDI(FPDF_BOOL use_gdi) { FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDF_SetPrintMode(int mode) { if (mode < FPDF_PRINTMODE_EMF || mode > FPDF_PRINTMODE_POSTSCRIPT3) return FALSE; - g_pdfium_print_mode = mode; + g_pdfium_print_mode = static_cast<WindowsPrintMode>(mode); return TRUE; } #endif // defined(_WIN32) |