[poppler] splash/SplashBitmap.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Thu May 17 10:55:25 PDT 2012


 splash/SplashBitmap.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 87093d1250807f660042295747a012032f84c034
Author: Anthony Wesley <awesley at smartnetworks.com.au>
Date:   Thu May 17 19:54:47 2012 +0200

    Fix logic on SplashBitmap::writeImgFile

diff --git a/splash/SplashBitmap.cc b/splash/SplashBitmap.cc
index f252318..e4f27fc 100644
--- a/splash/SplashBitmap.cc
+++ b/splash/SplashBitmap.cc
@@ -20,6 +20,7 @@
 // Copyright (C) 2010 Christian Feuersänger <cfeuersaenger at googlemail.com>
 // Copyright (C) 2010 William Bader <williambader at hotmail.com>
 // Copyright (C) 2011, 2012 Thomas Freitag <Thomas.Freitag at alfa.de>
+// Copyright (C) 2012 Anthony Wesley <awesley at smartnetworks.com.au>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -519,7 +520,7 @@ SplashError SplashBitmap::writeImgFile(ImgWriter *writer, FILE *f, int hDPI, int
     break;
   }
   
-  if (writer->close()) {
+  if (!writer->close()) {
     return splashErrGeneric;
   }
 


More information about the poppler mailing list