[poppler] utils/ImageOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sat Jan 27 23:26:19 UTC 2018
utils/ImageOutputDev.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 248aa0f5832ce063a9ae061dfcf54596e0ea5fba
Author: Albert Astals Cid <aacid at kde.org>
Date: Sun Jan 28 00:25:38 2018 +0100
Fix build without libpng
diff --git a/utils/ImageOutputDev.cc b/utils/ImageOutputDev.cc
index 63f7399e..90e9ced5 100644
--- a/utils/ImageOutputDev.cc
+++ b/utils/ImageOutputDev.cc
@@ -13,7 +13,7 @@
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
-// Copyright (C) 2005, 2007, 2011 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005, 2007, 2011, 2018 Albert Astals Cid <aacid at kde.org>
// Copyright (C) 2006 Rainer Keller <class321 at gmx.de>
// Copyright (C) 2008 Timothy Lee <timothy.lee at siriushk.com>
// Copyright (C) 2008 Vasile Gaburici <gaburici at cs.umd.edu>
@@ -620,9 +620,9 @@ void ImageOutputDev::writeImage(GfxState *state, Object *ref, Stream *str,
}
writeImageFile(writer, format, "png", str, width, height, colorMap);
-#endif
- delete writer;
+ delete writer;
+#endif
} else if (outputTiff) {
// output in TIFF format
More information about the poppler
mailing list