r17202 by jghali - fix ScJpegEncodeFilter writing too long streams

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 15 00:14:05 UTC 2012


Author: jghali
Date: Sun Jan 15 00:14:05 2012
New Revision: 17202

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17202
Log:
fix ScJpegEncodeFilter writing too long streams

Modified:
    trunk/Scribus/scribus/scstreamfilter_jpeg.cpp

Modified: trunk/Scribus/scribus/scstreamfilter_jpeg.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17202&path=/trunk/Scribus/scribus/scstreamfilter_jpeg.cpp
==============================================================================
--- trunk/Scribus/scribus/scstreamfilter_jpeg.cpp (original)
+++ trunk/Scribus/scribus/scstreamfilter_jpeg.cpp Sun Jan 15 00:14:05 2012
@@ -80,7 +80,7 @@
     ScJpegDestinationMgr* dest = (ScJpegDestinationMgr*) cinfo->dest;
     int n = BUFFER_SIZE - dest->free_in_buffer;
 
-    bool written = dest->filter->writeDataInternal((const char*) dest->buffer, BUFFER_SIZE);
+    bool written = dest->filter->writeDataInternal((const char*) dest->buffer, n);
     if (!written)
         (*cinfo->err->error_exit)((j_common_ptr)cinfo);
 }




More information about the scribus-commit mailing list