Large components disappear when none of the edges is in the visible area

This commit is contained in:
bancika
2013-04-23 15:45:24 +00:00
parent 8ed165766f
commit 7497e89afd
2 changed files with 1 additions and 1 deletions
@@ -111,7 +111,7 @@ public abstract class AbstractComponent<T> implements IDIYComponent<T> {
} }
} }
Rectangle2D rect = new Rectangle2D.Double(minX, minY, maxX - minX, maxY - minY); Rectangle2D rect = new Rectangle2D.Double(minX, minY, maxX - minX, maxY - minY);
return clip.intersects(rect); return !clip.intersects(rect);
} }
protected void drawCenteredText(Graphics2D g2d, String text, int x, int y, protected void drawCenteredText(Graphics2D g2d, String text, int x, int y,