EA-33162 - IAE: TabContentLayout.drawToBuffer

This commit is contained in:
Evgeny Zakrevsky
2012-05-22 20:10:48 +04:00
parent 547d86a174
commit 9e3041ba03
@@ -44,6 +44,7 @@ public class IdeRepaintManager extends RepaintManager {
WeakReference<JComponent> myLastComponent;
public Image getVolatileOffscreenBuffer(Component c, int proposedWidth, int proposedHeight) {
if (proposedWidth <= 0 || proposedHeight <= 0) return null;
final Image buffer = super.getVolatileOffscreenBuffer(c, proposedWidth, proposedHeight);
clearLeakyImages(false); // DisplayChangedListener might be unavailable
return buffer;