Forums > Java

Bug in MaxBox.isPatcher(): always return false


February 11, 2009 | 11:31 am

Hi,

I have a problem with MaxBox.isPatcher(), it always return false.
I have subpatcher in my patch, and even MaxBox.getSubMatcher()
is returning good result for them.

MaxBox[] boxes = getParentPatcher().getAllBoxes();
for (int i = 0; i < boxes.length; i++)
{
MaxBox b = boxes[i];

if (b.isPatcher())
{
post(" got patcher from isPatcher");
}
if (b.getSubPatcher()!=null)
{
post(" get patcher from b.getSubPatcher()!=null");
}
}

Will return :
get patcher from b.getSubPatcher()!=null

Thanks for correcting this
Best regards
Chris

February 11, 2009 | 1:11 pm
Viewing 2 posts - 1 through 2 (of 2 total)

Forums > Java