We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › weird autoformat thing is back again...
Page Index Toggle Pages: 1
weird autoformat thing is back again... (Read 770 times)
weird autoformat thing is back again...
Jan 18th, 2006, 8:09am
 
here's the code


blah blah blah....
           top.x=((eA.x*(float)width)*scalex) + xoff;
           top.y= ((eA.y*(float)height)*scaley) + yoff;
           //top(((eA.x*(float)width)*scalex) + xoff,((eA.y*(float)height)*scaley) + yoff);
         }
         if(top.x!=0 && top.y!=0){
           if((((eA.y*(float)height)*scaley) + yoff)<top.y){
             top.x=((eA.x*(float)width)*scalex) + xoff;
             top.y= ((eA.y*(float)height)*scaley) + yoff;
             //top(((eA.x*(float)width)*scalex) + xoff,((eA.y*(float)height)*scaley) + yoff);
           }
         }
       }
     }
     fill(0);
     ellipse(top.x,top.y,10,10);
     noFill();
     // Blobs
     if (drawBlobs) {
       strokeWeight(rectStrk);
       stroke(brectc);
       //rect(((b.xMin*(float)width)*scalex) + xoff, ((b.yMin*(float)height)*scaley) + yoff,(b.w*(float)width)*scalex,(b.h*(float)height)*scaley);
     }
     if(((b.w*(float)width)*scalex)*((b.h*(float)height)*scaley)>minSize){
       stroke(0);
      rect(((b.xMin*(float)width)*scalex) + xoff+(((b.w*(float)width)*scalex)/2),(((b.yMin*(float)height)*scaley) + yoff)+(((b.h*(float)height)*scaley)/2),((b.w*(float)width)*scalex)/3,(b.h*(float
)height)*scaley);
       
      // heads= expand(heads, headCount+1);
      // heads[headCount] = new head(((b.xMin*(float)width)*scalex) + xoff,((b.yMin*(float)height)*scaley) + yoff,(b.w*(float)width)*scalex,(b.h*(float)height)*scaley);
      // headCount++;
     }
   }
 }
}






i have my cursor at the end of the line, after the last }
and then i do autoformat, it gives me this

if (drawBlobs) {
       strokeWeight(rectStrk);
       stroke(brectc);
       //rect(((b.xMin*(float)width)*scalex) + xoff, ((b.yMin*(float)height)*scaley) + yoff,(b.w*(float)width)*scalex,(b.h*(float)height)*sc
       ley)


for my last lines, it replaces them with ley)

-jay

oh, i'm on 99
Re: weird autoformat thing is back again...
Reply #1 - Sep 24th, 2006, 5:54pm
 
if this hasn't been fixed, please file the chunk of code that can reproduce the problem as a bug in the bugs db so we can keep track of it.
Page Index Toggle Pages: 1