diff options
author | Brian Fraser <andthebrain@softfrog.ca> | 2013-09-03 11:57:24 -0700 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-04 09:22:08 +0000 |
commit | bcbb20b0efc608653bd680565542f5d804755c8f (patch) | |
tree | 3abea8cd813ab527759c197682af7db4c7eb0eb1 /sd/source/ui/view/DocumentRenderer.cxx | |
parent | 673881b8fbdc3e0b66d7042221ff9532a49fc044 (diff) |
Print images in grayscale when printing using the "Black & White".
Black and white color option found in Impress at
File-->Print-->Libreoffice Impress tab
Before change, images are printed in pure white, and hence
missing from the printouts.
Should resolve bug 62838, and is contributed under the LGPLv3+ / MPL.
Change-Id: I29e291c2f2baf95b5725b862625f6a206e4cb8ba
Reviewed-on: https://gerrit.libreoffice.org/5798
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source/ui/view/DocumentRenderer.cxx')
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index b98b55a0e0fb..89141cd0a8c6 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -1507,15 +1507,15 @@ private: switch (mpOptions->GetOutputQuality()) { - case 1: + case 1: // Grayscale aInfo.mnDrawMode = DRAWMODE_GRAYLINE | DRAWMODE_GRAYFILL | DRAWMODE_GRAYTEXT | DRAWMODE_GRAYBITMAP | DRAWMODE_GRAYGRADIENT; break; - case 2: + case 2: // Black & White aInfo.mnDrawMode = DRAWMODE_BLACKLINE | DRAWMODE_WHITEFILL - | DRAWMODE_BLACKTEXT | DRAWMODE_WHITEBITMAP + | DRAWMODE_BLACKTEXT | DRAWMODE_GRAYBITMAP | DRAWMODE_WHITEGRADIENT; break; |