diff options
author | Jiri Vanek <[email protected]> | 2013-06-06 16:57:14 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-06-06 16:57:14 +0200 |
commit | b88f1e63c7a8eb23ec4ec27726d2fe6a9968f1d6 (patch) | |
tree | 7c60b990a117be4fb5c31723499613cdd686aec2 /plugin | |
parent | 11fd7b8b63735365f41cb34133daf29c295d749a (diff) |
Silenced deployment.properties and zero size applet exceptions with tests
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/icedteanp/java/sun/applet/PluginAppletViewer.java | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } |