Bug in MaxBox.isPatcher(): always return false

Chris's icon

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

Léopold Frey's icon