[Gridflow-cvs] [svn] commit: r3697 - /trunk/gridflow.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sat May 3 22:23:05 EDT 2008


Author: matju
Date: Sat May  3 22:23:05 2008
New Revision: 3697

Log:
get rid of the object droppings

Modified:
    trunk/gridflow.c

Modified: trunk/gridflow.c
==============================================================================
--- trunk/gridflow.c (original)
+++ trunk/gridflow.c Sat May  3 22:23:05 2008
@@ -629,7 +629,6 @@
 	t_rtext *rt = glist_findrtext(bself->mom,bself);
 	if (!rt) return;
 	gobj_vis((t_gobj *)bself,bself->mom,0);
-	//fprintf(stderr,"object x=%d y=%d",bself->te_xpix,bself->te_ypix);
 	gobj_vis((t_gobj *)bself,bself->mom,1);
 	canvas_fixlinesfor(bself->mom,(t_text *)bself);
 #endif
@@ -637,6 +636,7 @@
 
 /* warning: deleting inlets that are connected will cause pd to crash */
 void BFObject::ninlets_set (int n, bool draw) {
+	if (!te_binbuf) draw=false;
 	if (n<1) RAISE("ninlets_set: n=%d must be at least 1",n);
 	if (draw) BFObject_undrawio(this);
 	if (ninlets<n) {
@@ -662,6 +662,7 @@
 }
 /* warning: deleting outlets that are connected will cause pd to crash */
 void BFObject::noutlets_set (int n, bool draw) {
+	if (!te_binbuf) draw=false;
 	if (n<0) RAISE("noutlets_set: n=%d must be at least 0",n);
 	if (draw) BFObject_undrawio(this);
 	if (noutlets<n) {



More information about the Gridflow-cvs mailing list