diff options
Diffstat (limited to 'Build/source/libs/poppler/poppler-src/goo/TiffWriter.cc')
-rw-r--r-- | Build/source/libs/poppler/poppler-src/goo/TiffWriter.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/libs/poppler/poppler-src/goo/TiffWriter.cc b/Build/source/libs/poppler/poppler-src/goo/TiffWriter.cc index 316008778b1..35ceae69f6a 100644 --- a/Build/source/libs/poppler/poppler-src/goo/TiffWriter.cc +++ b/Build/source/libs/poppler/poppler-src/goo/TiffWriter.cc @@ -6,7 +6,7 @@ // // Copyright (C) 2010, 2012 William Bader <williambader@hotmail.com> // Copyright (C) 2012 Albert Astals Cid <aacid@kde.org> -// Copyright (C) 2012 Adrian Johnson <ajohnson@redneon.com> +// Copyright (C) 2012, 2017 Adrian Johnson <ajohnson@redneon.com> // Copyright (C) 2012 Pino Toscano <pino@kde.org> // Copyright (C) 2014 Steven Lee <roc.sky@gmail.com> // @@ -14,7 +14,7 @@ #include "TiffWriter.h" -#if ENABLE_LIBTIFF +#ifdef ENABLE_LIBTIFF #include <string.h> @@ -147,6 +147,12 @@ bool TiffWriter::init(FILE *openedFile, int width, int height, int hDPI, int vDP samplesperpixel = 4; photometric = PHOTOMETRIC_SEPARATED; break; + + case RGB48: + samplesperpixel = 3; + bitspersample = 16; + photometric = PHOTOMETRIC_RGB; + break; } // Open the file |