From b88f1e63c7a8eb23ec4ec27726d2fe6a9968f1d6 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Thu, 6 Jun 2013 16:57:14 +0200 Subject: Silenced deployment.properties and zero size applet exceptions with tests --- plugin/icedteanp/java/sun/applet/PluginAppletViewer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugin/icedteanp/java/sun/applet/PluginAppletViewer.java') diff --git a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java index b66f52b..7742035 100644 --- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java +++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java @@ -1547,7 +1547,9 @@ public class PluginAppletViewer extends XEmbeddedFrame // If the image or the graphics don't exist, create new ones if (bufFrameImg == null || bufFrameImgGraphics == null) { - bufFrameImg = createImage(getWidth(), getHeight()); + // although invisible applets do not have right to paint + // we rather paint to 1x1 to be sure all callbacks will be completed + bufFrameImg = createImage(Math.max(1, getWidth()), Math.max(1, getHeight())); bufFrameImgGraphics = bufFrameImg.getGraphics(); } -- cgit v1.2.3