[Gridflow-cvs] [svn] commit: r6068 - /trunk/src/classes2.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Aug 13 02:01:49 EDT 2010


Author: matju
Date: Fri Aug 13 02:01:49 2010
New Revision: 6068

Log:
prevent crash when the new [gf/error] is used in a non-abstraction

Modified:
    trunk/src/classes2.cxx

Modified: trunk/src/classes2.cxx
==============================================================================
--- trunk/src/classes2.cxx (original)
+++ trunk/src/classes2.cxx Fri Aug 13 02:01:49 2010
@@ -742,8 +742,8 @@
 		t_canvasenvironment *ce = canvas_getenv(canvas_getabstop(mom));
 		std::ostringstream o;
 		o << "[";
-		if (binbuf_getnatom(b)) o<<*binbuf_getvec(b);
-		for (int i=0; i<ce->ce_argc; i++) o << " " << ce->ce_argv[i];
+		if (b && binbuf_getnatom(b)) o<<*binbuf_getvec(b); else o<<"???";
+		if (ce) for (int i=0; i<ce->ce_argc; i++) o << " " << ce->ce_argv[i];
 		o << "]: ";
 		pd_oprintf(o,format.data(),argc,argv);
 		t_canvas *canvas = canvas_getrootfor(mom);



More information about the Gridflow-cvs mailing list