f-spot r4603 - in trunk: . libfspot



Author: sdelcroix
Date: Thu Nov 20 16:09:08 2008
New Revision: 4603
URL: http://svn.gnome.org/viewvc/f-spot?rev=4603&view=rev

Log:
report the correct image size, not 0x0

2008-11-20  Stephane Delcroix  <sdelcroix novell com>

	* libfspot/f-jpeg-utils.c: fix a bug causing 0x0 as reported image
	size.

Modified:
   trunk/ChangeLog
   trunk/libfspot/f-jpeg-utils.c

Modified: trunk/libfspot/f-jpeg-utils.c
==============================================================================
--- trunk/libfspot/f-jpeg-utils.c	(original)
+++ trunk/libfspot/f-jpeg-utils.c	Thu Nov 20 16:09:08 2008
@@ -101,7 +101,7 @@
 				      NULL,
 				      &err);
 	
-	if (err == NULL || nbytes == 0) {
+	if (err != NULL || nbytes == 0) {
 		/* return a fake EOI marker so we will eventually terminate */
 		src->buffer[0] = (JOCTET) 0xFF;
 		src->buffer[1] = (JOCTET) JPEG_EOI;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]