From: Fridrich S. <str...@us...> - 2009-09-07 09:50:27
|
Update of /cvsroot/libwpg/libwpg/src/lib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1769/src/lib Modified Files: WPGBitmap.cpp Log Message: Actually use different numbers for binary dumps if there are several bitmaps in the file Index: WPGBitmap.cpp =================================================================== RCS file: /cvsroot/libwpg/libwpg/src/lib/WPGBitmap.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- WPGBitmap.cpp 7 Sep 2009 09:41:29 -0000 1.26 +++ WPGBitmap.cpp 7 Sep 2009 09:50:15 -0000 1.27 @@ -27,7 +27,7 @@ #include "WPGBitmap.h" #include "libwpg_utils.h" -#define DUMP_BITMAP 1 +#define DUMP_BITMAP 0 #if DUMP_BITMAP static unsigned bitmapId = 0; @@ -238,7 +238,7 @@ #if DUMP_BITMAP std::ostringstream filename; filename << "binarydump" << bitmapId++ << ".bmp"; - FILE *f = fopen("binarydump.bmp", "wb"); + FILE *f = fopen(filename.str().c_str(), "wb"); if (f) { for (unsigned k = 0; k < tmpDIBFileSize; k++) |