[Gridflow-cvs] [svn] commit: r5493 - /trunk/src/formats.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Apr 19 23:15:53 EDT 2010


Author: matju
Date: Mon Apr 19 23:15:53 2010
New Revision: 5493

Log:
support ppm comments, as in gimp output

Modified:
    trunk/src/formats.cxx

Modified: trunk/src/formats.cxx
==============================================================================
--- trunk/src/formats.cxx (original)
+++ trunk/src/formats.cxx Mon Apr 19 23:15:53 2010
@@ -295,6 +295,7 @@
 		uint32 i=0;
 		char ch; do {
 			ch = fgetc(f);
+			if (ch=='#') do {ch=fgetc(f);} while (ch!='\n' && ch!='\r');
 		} while (isspace(ch));
 		if (!isdigit(ch)) RAISE("error reading header: expected uint");
 		do {



More information about the Gridflow-cvs mailing list