Status: New
Owner: ----

New issue 244 by g...@inbox.ru: Stack overflow in SwingLayoutNode.java#455
http://code.google.com/p/piccolo2d/issues/detail?id=244

// important to check that the bounds have really changed, or we'll
// cause StackOverflowException
if (x != getX() || y != getY() || w != getWidth() || h != getHeight()) {
...

This check is not enough. In my case getHeight() returns 0 while h == 1 and it loops execution.

Kinda fixed for myself like that:

if (x != getX() || y != getY() || w != getWidth() || Math.abs(h - getHeight()) > 1 ) {



--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to